diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-08-19 17:04:39 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-08-19 17:04:39 +0200 |
commit | 1c1216de5c3907796e109a61d3a796f75a9bcb99 (patch) | |
tree | d391386e2a5e8c9bc53e26d9b523bf2bfd429fd7 /src/components/script/dom/node.rs | |
parent | 30c66debb05cfc84cb8b0d53b6b174ce0af10879 (diff) | |
parent | 1b543144f19372476d50b9b1a1730c276f2b462c (diff) | |
download | servo-1c1216de5c3907796e109a61d3a796f75a9bcb99.tar.gz servo-1c1216de5c3907796e109a61d3a796f75a9bcb99.zip |
Merge pull request #3099 from Ms2ger/attr-local_name-atom
Make Attr::local_name an Atom; r=abinader
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 9ef327f4fa4..0d85f420290 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -1374,7 +1374,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.local_name().clone(), attr.deref().value().clone(), attr.deref().name.clone(), attr.deref().namespace.clone(), attr.deref().prefix.clone(), copy_elem)); } @@ -1833,7 +1833,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> { element.attrs.borrow().iter().map(|attr| attr.root()).all(|attr| { 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.local_name() == other_attr.local_name()) && (attr.deref().value().as_slice() == other_attr.deref().value().as_slice()) }) }) |