servo/components/script/dom/servoparser
Andreu Botella cd34f156f6 Fix document.characterSet not reflecting byte order marks.
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>
2020-12-31 13:43:33 +01:00
..
async_html.rs inserting an element from normal parser uses a CE reaction queue 2020-02-13 10:35:36 -05:00
html.rs Attr is a Node, with consequences for many Node methods 2019-12-23 19:10:16 -05:00
mod.rs Fix document.characterSet not reflecting byte order marks. 2020-12-31 13:43:33 +01:00
prefetch.rs checkpoint - dynamic load inside of a module and classic script works. 2020-07-18 00:43:34 +09:00
xml.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00