aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlserializer.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-06-12 10:00:18 +0200
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-06-22 20:39:21 +0900
commitc90a8529c5d88e4100ce9948da134694c80d39f4 (patch)
tree337ad6e71853b22c72679fc736d1b47b6c070e18 /src/components/script/dom/htmlserializer.rs
parentf6294a67c58e635f71a01ece3091879751984fe4 (diff)
downloadservo-c90a8529c5d88e4100ce9948da134694c80d39f4.tar.gz
servo-c90a8529c5d88e4100ce9948da134694c80d39f4.zip
Use internal mutability for Attr::value.
Diffstat (limited to 'src/components/script/dom/htmlserializer.rs')
-rw-r--r--src/components/script/dom/htmlserializer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/htmlserializer.rs b/src/components/script/dom/htmlserializer.rs
index e5cb06cb15f..2eca215e89b 100644
--- a/src/components/script/dom/htmlserializer.rs
+++ b/src/components/script/dom/htmlserializer.rs
@@ -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('"');
}