diff options
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index aaea91a4b15..54f8f812687 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2525,9 +2525,9 @@ impl<'a> style::node::TNode<'a> for JSRef<'a, Node> { }) }, NamespaceConstraint::Any => { - self.as_element().get_attributes(local_name).into_iter() - .map(|attr| attr.root()) - .any(|attr| { + let mut attributes: RootedVec<JS<Attr>> = RootedVec::new(); + self.as_element().get_attributes(local_name, &mut attributes); + attributes.iter().map(|attr| attr.root()).any(|attr| { // FIXME(https://github.com/rust-lang/rust/issues/23338) let attr = attr.r(); let value = attr.value(); |