Files
tubestation/testing/web-platform/tests/encoding/bom-handling.html
Andreu Botella 7295eb81e7 Bug 1622804 [wpt PR 22276] - [encoding] Tests for BOM detection., a=testonly
Automatic update from web-platform-tests
Encoding: BOM detection

For https://github.com/whatwg/html/pull/5359.
--

wpt-commits: 7d9b5a5facaf0b9d986e63e0a031983899d30c79
wpt-pr: 22276
2020-03-21 00:32:39 +00:00

18 lines
388 B
HTML

<!-- starts with a UTF-8 BOM -->
<!doctype html>
<meta charset="windows-1252">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<title>BOM handling</title>
<div id=log></div>
<script>
test(
() => {
assert_equals(document.characterSet.toLowerCase(), "utf-8");
},
"document.characterSet should match the BOM"
);
</script>