mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Store the encoding in the Document rather than its name.
This commit is contained in:
parent
e551ea7322
commit
b1cd28e9c6
3 changed files with 40 additions and 40 deletions
|
@ -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(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue