Store the encoding in the Document rather than its name.

This commit is contained in:
Ms2ger 2016-03-18 16:22:29 +01:00
parent e551ea7322
commit b1cd28e9c6
3 changed files with 40 additions and 40 deletions

View file

@ -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();