Move Node.namespaceURI to Element.(fixes #2059)

This commit is contained in:
lpy 2014-04-08 17:06:17 +08:00
parent 7541b57526
commit 77941dc996
4 changed files with 8 additions and 10 deletions

View file

@ -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