mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Cleanup HTMLCollection binding.
This commit is contained in:
parent
d2b57ba7c1
commit
8cb4976136
7 changed files with 32 additions and 39 deletions
|
@ -85,8 +85,8 @@ impl HTMLFormElement {
|
|||
}
|
||||
|
||||
pub fn Elements(&self) -> @mut HTMLCollection {
|
||||
let (scope, cx) = self.htmlelement.element.node.get_scope_and_cx();
|
||||
HTMLCollection::new(~[], cx, scope)
|
||||
let window = self.htmlelement.element.node.owner_doc().document().window;
|
||||
HTMLCollection::new(window, ~[])
|
||||
}
|
||||
|
||||
pub fn Length(&self) -> i32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue