summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/encoding/bom-handling.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/encoding/bom-handling.html')
-rw-r--r--testing/web-platform/tests/encoding/bom-handling.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/encoding/bom-handling.html b/testing/web-platform/tests/encoding/bom-handling.html
new file mode 100644
index 0000000000..ea70d36254
--- /dev/null
+++ b/testing/web-platform/tests/encoding/bom-handling.html
@@ -0,0 +1,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>