• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<title>
4foo="\</title\>"
5<meta charset=windows-1255>
6</title>
7<meta charset=KOI8-R>
8</head>
9<body>
10<pre id="log"></pre>
11<script>
12function log(message)
13{
14    document.getElementById("log").innerText += message + "\n";
15}
16
17if (window.layoutTestController)
18    layoutTestController.dumpAsText();
19
20if (document.inputEncoding == "KOI8-R")
21    log("PASS: " + document.inputEncoding);
22else
23    log("FAIL: " + document.inputEncoding);
24</script>
25<p>
26This test checks whether charset sniffer skips over escaped characters correctly.
27</body>
28</html>
29