From 9b56e2cc096c69c9a49f2a16a1958a0896996e52 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 11 Feb 2014 09:35:52 -0400 Subject: [PATCH] Added refs to live HTMLCollections issue --- src/components/script/dom/element.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs index 14d64754adb..bce4095d5f1 100644 --- a/src/components/script/dom/element.rs +++ b/src/components/script/dom/element.rs @@ -476,16 +476,19 @@ impl Element { // http://dom.spec.whatwg.org/#dom-element-getelementsbytagname pub fn GetElementsByTagName(&self, _localname: DOMString) -> @mut HTMLCollection { + // FIXME: https://github.com/mozilla/servo/issues/1662 HTMLCollection::new(self.node.owner_doc().document().window, ~[]) } // http://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens pub fn GetElementsByTagNameNS(&self, _namespace: Option, _localname: DOMString) -> Fallible<@mut HTMLCollection> { + // FIXME: https://github.com/mozilla/servo/issues/1662 Ok(HTMLCollection::new(self.node.owner_doc().document().window, ~[])) } // http://dom.spec.whatwg.org/#dom-element-getelementsbyclassname pub fn GetElementsByClassName(&self, _names: DOMString) -> @mut HTMLCollection { + // FIXME: https://github.com/mozilla/servo/issues/1662 HTMLCollection::new(self.node.owner_doc().document().window, ~[]) }