mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
The process of decoding the network byte stream to Unicode is backed by an instance of `encoding_rs::Decoder`, which will switch the encoding it uses if it finds a BOM in the byte stream. However, this change in encoding is not communicated back to the caller and so `document.characterSet` gives the wrong result. This change fixes that. See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing for this change. Signed-off-by: Andreu Botella <abb@randomunok.com> |
||
---|---|---|
.. | ||
async_html.rs | ||
html.rs | ||
mod.rs | ||
prefetch.rs | ||
xml.rs |