mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister
This commit is contained in:
commit
d222443b38
7 changed files with 32 additions and 39 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue