<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.testRunner) | |
testRunner.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> |