Make the parser decode input from document's encoding

The document's encoding is only computed from the Content-Type header for now,
with no sniffing at all.
This commit is contained in:
Anthony Ramine 2018-12-12 13:03:48 +01:00
parent 848a4e256a
commit a2abfc6301
9 changed files with 37 additions and 43 deletions

View file

@ -1,5 +0,0 @@
[the-input-byte-stream-001.html]
type: testharness
[The character encoding of a page can be set using the HTTP header charset declaration.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[the-input-byte-stream-016.html]
type: testharness
[The HTTP header has a higher precedence than an encoding declaration in a meta content attribute.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[the-input-byte-stream-018.html]
type: testharness
[The HTTP header has a higher precedence than an encoding declaration in a meta charset attribute.]
expected: FAIL

View file

@ -4,7 +4,3 @@
expected: FAIL
bug: https://github.com/servo/servo/issues/14912
[HTML document, shift-jis]
expected: FAIL
bug: https://github.com/servo/servo/issues/6414