aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-03-18 16:22:29 +0100
committerMs2ger <Ms2ger@gmail.com>2016-03-18 16:22:52 +0100
commitb1cd28e9c674467fc30ffc22c4ea99fa94022d0e (patch)
treefe2afe9cf14fc82c0f943d7542b9273bdc150d4b /components/script/dom/node.rs
parente551ea73226404152e02c3445f4f91e639bf66ce (diff)
downloadservo-b1cd28e9c674467fc30ffc22c4ea99fa94022d0e.tar.gz
servo-b1cd28e9c674467fc30ffc22c4ea99fa94022d0e.zip
Store the encoding in the Document rather than its name.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index fed47bb7b24..730f69f24cd 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1696,7 +1696,7 @@ impl Node {
NodeTypeId::Document(_) => {
let node_doc = node.downcast::<Document>().unwrap();
let copy_doc = copy.downcast::<Document>().unwrap();
- copy_doc.set_encoding_name(node_doc.encoding_name().clone());
+ copy_doc.set_encoding(node_doc.encoding());
copy_doc.set_quirks_mode(node_doc.quirks_mode());
},
NodeTypeId::Element(..) => {