diff options
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index 2e3e02d381b..5be262a9003 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -1327,7 +1327,7 @@ impl Node { for attr in node_elem.deref().attrs.borrow().iter().map(|attr| attr.root()) { copy_elem.deref().attrs.borrow_mut().push_unrooted( &Attr::new(&*window, - attr.deref().local_name.clone(), attr.deref().value.clone(), + attr.deref().local_name.clone(), attr.deref().value().clone(), attr.deref().name.clone(), attr.deref().namespace.clone(), attr.deref().prefix.clone(), copy_elem)); } @@ -1815,7 +1815,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> { other_element.attrs.borrow().iter().map(|attr| attr.root()).any(|other_attr| { (attr.namespace == other_attr.namespace) && (attr.local_name == other_attr.local_name) && - (attr.value == other_attr.value) + (attr.deref().value_ref() == other_attr.deref().value_ref()) }) }) } |