mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -1150,7 +1150,7 @@ impl XMLHttpRequest {
|
|||
_ => { return None; }
|
||||
}
|
||||
// Step 9
|
||||
temp_doc.set_encoding_name(DOMString::from(charset.name()));
|
||||
temp_doc.set_encoding(charset);
|
||||
// Step 13
|
||||
self.response_xml.set(Some(temp_doc.r()));
|
||||
return self.response_xml.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue