From ae1dc1a91eea23be14f952efb130412fe6a7996b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 29 Oct 2018 23:00:03 -0700 Subject: Handle more encoding conversion edge cases --- http/client/testdata/No-encoding-declaration.html | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 http/client/testdata/No-encoding-declaration.html (limited to 'http/client/testdata/No-encoding-declaration.html') diff --git a/http/client/testdata/No-encoding-declaration.html b/http/client/testdata/No-encoding-declaration.html new file mode 100644 index 0000000..612e26c --- /dev/null +++ b/http/client/testdata/No-encoding-declaration.html @@ -0,0 +1,47 @@ + + + + No encoding declaration + + + + + + + + + + + +

No encoding declaration

+ + +
+ + +
 
+ + + + + +
+

A page with no encoding information in HTTP, BOM, XML declaration or meta element will be treated as UTF-8.

+

The test on this page contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ýäè. This matches the sequence of bytes above when they are interpreted as UTF-8. If the class name matches the selector then the test will pass.

+
+
+
Next test
HTML5
+

the-input-byte-stream-015
Result summary & related tests
Detailed results for this test
Link to spec

+
Assumptions:
  • The test is read from a server that supports HTTP.
+
+ + + + + + -- cgit v1.2.3