Cleanup HTMLCollection binding.

This commit is contained in:
Ms2ger 2013-10-23 20:59:14 +02:00
parent d2b57ba7c1
commit 8cb4976136
7 changed files with 32 additions and 39 deletions

View file

@ -38,8 +38,8 @@ impl HTMLFieldSetElement {
}
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 WillValidate(&self) -> bool {