mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
commit
da668f53d9
11 changed files with 269 additions and 47 deletions
|
@ -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())
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue