Implement support for parsed attributes.

This commit is heavily based on earlier work by Bruno Abinader in #2073.
This commit is contained in:
Ms2ger 2014-06-08 14:53:48 +02:00
parent 37e9458514
commit 0803e5d0ac
4 changed files with 90 additions and 17 deletions

View file

@ -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(), &copy_elem_alias));
}