mismatched-end-tag.html revision f05b935882198ccf7d81675736e3aeb089c5113a
1<html>
2<head>
3</script>
4<meta charset=windows-1255>
5</head>
6<body>
7<pre id="log"></pre>
8<script>
9function log(message)
10{
11    document.getElementById("log").innerText += message + "\n";
12}
13
14if (window.layoutTestController)
15    layoutTestController.dumpAsText();
16
17if (document.inputEncoding == "windows-1255")
18    log("PASS: " + document.inputEncoding);
19else
20    log("FAIL: " + document.inputEncoding);
21</script>
22<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>
23</body>
24</html>
25