Added refs to live HTMLCollections issue

This commit is contained in:
Bruno de Oliveira Abinader 2014-02-11 09:35:52 -04:00
parent 7f5e27fd9d
commit 9b56e2cc09

View file

@ -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<DOMString>, _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, ~[])
}