mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cleanup HTMLCollection binding.
This commit is contained in:
parent
d2b57ba7c1
commit
8cb4976136
7 changed files with 32 additions and 39 deletions
|
@ -241,13 +241,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>> {
|
||||
|
@ -495,8 +493,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