mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Automatic update from web-platform-tests Encoding: make it clear sniffing for UTF-8 is not acceptable See https://github.com/whatwg/encoding/issues/68 for background. -- wpt-commits: 305ff11b190e7e2bec120a27083f4ba43d6d976e wpt-pr: 14455
12 lines
448 B
HTML
12 lines
448 B
HTML
<!doctype html>
|
||
<script src=/resources/testharness.js></script>
|
||
<script src=/resources/testharnessreport.js></script>
|
||
<title>No (UTF-8) sniffing allowed</title>
|
||
<div id=log></div>
|
||
<div id=content> Hello World! </div>
|
||
<script>
|
||
test(() => {
|
||
assert_equals(document.getElementById("content").textContent, "\u00C2\u20AC\u00C2\u20AC Hello World! \u00C2\u20AC\u00C2\u20AC");
|
||
assert_equals(document.characterSet, "windows-1252");
|
||
});
|
||
</script>
|