aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformcontrolscollection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlformcontrolscollection.rs')
-rw-r--r--components/script/dom/htmlformcontrolscollection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlformcontrolscollection.rs b/components/script/dom/htmlformcontrolscollection.rs
index 5edc19232d4..3986692099c 100644
--- a/components/script/dom/htmlformcontrolscollection.rs
+++ b/components/script/dom/htmlformcontrolscollection.rs
@@ -65,7 +65,7 @@ impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection {
// Step 4-5
let once = iter::once(Root::upcast::<Node>(elem));
let list = once.chain(peekable.map(Root::upcast));
- let global = self.global_scope();
+ let global = self.global();
let window = global.as_window();
Some(RadioNodeListOrElement::RadioNodeList(RadioNodeList::new_simple_list(window, list)))
}