aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/node.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-06-13 11:41:13 -0400
committerbors-servo <release+servo@mozilla.com>2014-06-13 11:41:13 -0400
commitda668f53d9df3cc21e708d4521aef458ea5bf231 (patch)
tree984e965eaa61da6fb5b0701d098206a336958b39 /src/components/script/dom/node.rs
parent58b776e0b559cd08db9ecb44dd0b1bbea731af57 (diff)
parentb012c99e05ce6eb2bb4b55ebb3d5c1a5a3bd48f7 (diff)
downloadservo-da668f53d9df3cc21e708d4521aef458ea5bf231.tar.gz
servo-da668f53d9df3cc21e708d4521aef458ea5bf231.zip
auto merge of #2616 : Ms2ger/servo/attrvalue, r=jdm
Obsoletes #2073.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r--src/components/script/dom/node.rs4
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())
})
})
}