summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/bom-in-content.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/bom-in-content.html')
-rw-r--r--LayoutTests/fast/encoding/bom-in-content.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/bom-in-content.html b/LayoutTests/fast/encoding/bom-in-content.html
new file mode 100644
index 0000000..c30a914
--- /dev/null
+++ b/LayoutTests/fast/encoding/bom-in-content.html
@@ -0,0 +1,14 @@
+<head>
+<meta charset="utf-8">
+</head>
+<body>
+<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=18681">bug 18681</a>:
+BOM characters should not be removed from input stream.<p>
+<div id=BOMs></div>
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+document.write(document.getElementById("BOMs").innerHTML.length == 1 ? "PASS" : "FAIL");
+</script>
+</body>