diff options
author | James Graham <james@hoppipolla.co.uk> | 2014-07-27 22:44:13 +0100 |
---|---|---|
committer | James Graham <james@hoppipolla.co.uk> | 2014-08-08 14:30:34 +0100 |
commit | 0b802ab01882dc43ad5ec0f0e8e8699f22866e71 (patch) | |
tree | bd661db1e97999d116d5bcf5b4c9107b5131db26 /src/components/script/dom/document.rs | |
parent | 70e70fd1d9da87bc0a832734b137f2c326641c4e (diff) | |
download | servo-0b802ab01882dc43ad5ec0f0e8e8699f22866e71.tar.gz servo-0b802ab01882dc43ad5ec0f0e8e8699f22866e71.zip |
Fix getElementsByTagName[NS] support to match the spec.
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r-- | src/components/script/dom/document.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 461ed9c69d5..bd2c6baf5ec 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -351,12 +351,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { // http://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens fn GetElementsByTagNameNS(&self, maybe_ns: Option<DOMString>, tag_name: DOMString) -> Temporary<HTMLCollection> { let window = self.window.root(); - - let namespace = match maybe_ns { - Some(namespace) => Namespace::from_str(namespace.as_slice()), - None => Null - }; - HTMLCollection::by_tag_name_ns(&*window, NodeCast::from_ref(self), tag_name, namespace) + HTMLCollection::by_tag_name_ns(&*window, NodeCast::from_ref(self), tag_name, maybe_ns) } // http://dom.spec.whatwg.org/#dom-document-getelementsbyclassname |