summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/meta-in-body.html
blob: f66097c85bd90ffe98d0bc294692bdf8222c7047 (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>
</head>
<body>
<meta charset=ISO-2022-JP>
<pre id="log"></pre>
<script>
function log(message)
{
    document.getElementById("log").innerText += message + "\n";
}

if (window.layoutTestController)
    layoutTestController.dumpAsText();

if (document.inputEncoding == "ISO-2022-JP")
    log("PASS: " + document.inputEncoding);
else
    log("FAIL: " + document.inputEncoding);
</script>
<p>
This test checks that the charset sniffer scans at least 1024 bytes of data to find a meta tag, even if it is not in the head section.
</body>
</html>