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

@ -219,13 +219,11 @@ impl Document {
}
pub fn GetElementsByTagNameNS(&self, _ns: &DOMString, _tag: &DOMString) -> @mut HTMLCollection {
let (scope, cx) = self.get_scope_and_cx();
HTMLCollection::new(~[], cx, scope)
HTMLCollection::new(self.window, ~[])
}
pub fn GetElementsByClassName(&self, _class: &DOMString) -> @mut HTMLCollection {
let (scope, cx) = self.get_scope_and_cx();
HTMLCollection::new(~[], cx, scope)
HTMLCollection::new(self.window, ~[])
}
pub fn GetElementById(&self, id: &DOMString) -> Option<AbstractNode<ScriptView>> {
@ -366,8 +364,7 @@ impl Document {
}
}
}
let (scope, cx) = self.get_scope_and_cx();
HTMLCollection::new(elements, cx, scope)
HTMLCollection::new(self.window, elements)
}
pub fn content_changed(&self) {