Move HTMLSelectElement upcast call into HTMLOptionsCollection constructor. Fixes #15521

This commit is contained in:
Simon Whitehead 2017-02-14 00:49:31 +11:00
parent 357df35045
commit 7409031af2
2 changed files with 6 additions and 5 deletions

View file

@ -243,7 +243,7 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
self.options.or_init(|| {
let window = window_from_node(self);
HTMLOptionsCollection::new(
&window, self.upcast(), box OptionsFilter)
&window, self, box OptionsFilter)
})
}