Automatic update from web-platform-tests Encoding: BOM detection For https://github.com/whatwg/html/pull/5359. -- wpt-commits: 7d9b5a5facaf0b9d986e63e0a031983899d30c79 wpt-pr: 22276
18 lines
388 B
HTML
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>
|