summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/mismatched-end-tag.html
blob: 2b738c4d38587bf1d3adc9aeb1d4bb4fa1ddf580 (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>
</script>
<meta 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 extraneous end script tag and ignore the meta tag, thinking it is inside a script.</p>
</body>
</html>