24 lines
559 B
HTML
24 lines
559 B
HTML
<html>
|
|
<head>
|
|
<foo<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("FAIL: " + document.inputEncoding);
|
|
else
|
|
log("PASS: " + document.inputEncoding);
|
|
</script>
|
|
<p>This test baselines charset sniffer behavior where the opening bracket inside a tag is consumed as part of the tag data, causing the meta tag to be missed.
|
|
</body>
|
|
</html>
|