mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement support for parsed attributes.
This commit is heavily based on earlier work by Bruno Abinader in #2073.
This commit is contained in:
parent
37e9458514
commit
0803e5d0ac
4 changed files with 90 additions and 17 deletions
|
@ -1300,7 +1300,7 @@ impl Node {
|
|||
for attr in node_elem.attrs.borrow().iter().map(|attr| attr.root()) {
|
||||
copy_elem.attrs.borrow_mut().push_unrooted(
|
||||
&Attr::new(&*window,
|
||||
attr.deref().local_name.clone(), attr.deref().value_ref().to_string(),
|
||||
attr.deref().local_name.clone(), attr.deref().value().clone(),
|
||||
attr.deref().name.clone(), attr.deref().namespace.clone(),
|
||||
attr.deref().prefix.clone(), ©_elem_alias));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue