Implement Document.createElementNS.

This commit is contained in:
Daniel Glazman 2014-04-07 10:14:01 +02:00 committed by Ms2ger
parent 86c83f7bfc
commit 4b0da08573
6 changed files with 101 additions and 8 deletions

View file

@ -1734,8 +1734,9 @@ impl Node {
}
// http://dom.spec.whatwg.org/#dom-node-namespaceuri
pub fn GetNamespaceURI(&self) -> Option<DOMString> {
None
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