summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/not-http-equiv-content.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/not-http-equiv-content.html')
-rw-r--r--LayoutTests/fast/encoding/not-http-equiv-content.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/not-http-equiv-content.html b/LayoutTests/fast/encoding/not-http-equiv-content.html
new file mode 100644
index 0000000..dcc1476
--- /dev/null
+++ b/LayoutTests/fast/encoding/not-http-equiv-content.html
@@ -0,0 +1,24 @@
+<html>
+<head>
+<meta name="description" content="how to set charset=utf-8 on HTML docs">
+<meta http-equiv="content-type" content="text/html; charset=windows-1255">
+</head>
+<body>
+<pre id="log"></pre>
+<script>
+function log(message)
+{
+ document.getElementById("log").innerText += message + "\n";
+}
+
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+if (document.inputEncoding == "windows-1255")
+ log("PASS: " + document.inputEncoding);
+else
+ log("FAIL: " + document.inputEncoding);
+</script>
+<p>This test checks that charset sniffer does not get confused by the text that contains charset wording.</p>
+</body>
+</html>