mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use internal mutability for Attr::value.
This commit is contained in:
parent
f6294a67c5
commit
c90a8529c5
8 changed files with 35 additions and 25 deletions
|
@ -151,7 +151,7 @@ fn serialize_attr(attr: &JSRef<Attr>, html: &mut String) {
|
|||
html.push_str(attr.deref().name.as_slice());
|
||||
};
|
||||
html.push_str("=\"");
|
||||
escape(attr.deref().value_ref(), true, html);
|
||||
escape(attr.deref().value().as_slice(), true, html);
|
||||
html.push_char('"');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue