summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/encoding/bom-handling.html
blob: ea70d362546ed0d75129ffa1aed67493cf5ae89e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- 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>