summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/not-http-equiv-content.html
blob: dcc14766da932f0f47b87ff46b224cf295915257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>