mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Move Node.namespaceURI to Element.(fixes #2059)
This commit is contained in:
parent
7541b57526
commit
77941dc996
4 changed files with 8 additions and 10 deletions
|
@ -1733,12 +1733,6 @@ impl Node {
|
|||
false
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-node-namespaceuri
|
||||
pub fn GetNamespaceURI(&self, abstract_self: &JS<Node>) -> Option<DOMString> {
|
||||
let element: Option<JS<Element>> = ElementCast::to(abstract_self);
|
||||
element.map(|element| element.get().namespace.to_str().to_owned())
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-node-prefix
|
||||
pub fn GetPrefix(&self) -> Option<DOMString> {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue