diff options
author | Daniel Glazman <daniel@glazman.org> | 2014-04-07 10:14:01 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-04-07 10:20:10 +0200 |
commit | 4b0da08573b0919a06056302a5e9986d1be88fcb (patch) | |
tree | f5dea8c6d948c217768708486215e70161ecef71 /src/components/script/dom/node.rs | |
parent | 86c83f7bfc2c748047dbd9b2d4b788e77714c980 (diff) | |
download | servo-4b0da08573b0919a06056302a5e9986d1be88fcb.tar.gz servo-4b0da08573b0919a06056302a5e9986d1be88fcb.zip |
Implement Document.createElementNS.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index 0a35b5b6b0d..77ca388be9e 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -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 |