auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister

This commit is contained in:
bors-servo 2013-10-24 06:22:16 -07:00
commit d222443b38
7 changed files with 32 additions and 39 deletions

View file

@ -252,18 +252,15 @@ impl Element {
}
pub fn GetElementsByTagName(&self, _localname: &DOMString) -> @mut HTMLCollection {
let (scope, cx) = self.node.get_scope_and_cx();
HTMLCollection::new(~[], cx, scope)
HTMLCollection::new(self.node.owner_doc().document().window, ~[])
}
pub fn GetElementsByTagNameNS(&self, _namespace: &DOMString, _localname: &DOMString) -> Fallible<@mut HTMLCollection> {
let (scope, cx) = self.node.get_scope_and_cx();
Ok(HTMLCollection::new(~[], cx, scope))
Ok(HTMLCollection::new(self.node.owner_doc().document().window, ~[]))
}
pub fn GetElementsByClassName(&self, _names: &DOMString) -> @mut HTMLCollection {
let (scope, cx) = self.node.get_scope_and_cx();
HTMLCollection::new(~[], cx, scope)
HTMLCollection::new(self.node.owner_doc().document().window, ~[])
}
pub fn MozMatchesSelector(&self, _selector: &DOMString) -> Fallible<bool> {