diff options
author | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-02-27 13:14:02 -0400 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-03-07 11:10:55 -0400 |
commit | d22dbb53ca4bbbf3867d87f9d80059473bd48880 (patch) | |
tree | 41ca03ce00bad5d31884fca9b97aa755d26e9625 /src/components/script/dom/document.rs | |
parent | c768097adc6366dd60319aeaccc4f7e2f883e9f6 (diff) | |
download | servo-d22dbb53ca4bbbf3867d87f9d80059473bd48880.tar.gz servo-d22dbb53ca4bbbf3867d87f9d80059473bd48880.zip |
Implemented {Document,Element}.getElementsByTagName
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r-- | src/components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 2a81d08f4a5..9190e36b0dd 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -212,8 +212,8 @@ impl Document { } // http://dom.spec.whatwg.org/#dom-document-getelementsbytagname - pub fn GetElementsByTagName(&self, tag: DOMString) -> JS<HTMLCollection> { - self.createHTMLCollection(|elem| elem.get().tag_name == tag) + pub fn GetElementsByTagName(&self, abstract_self: &JS<Document>, tag_name: DOMString) -> JS<HTMLCollection> { + HTMLCollection::by_tag_name(&self.window, &NodeCast::from(abstract_self), tag_name) } // http://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid |