quotes-in-title.html revision f05b935882198ccf7d81675736e3aeb089c5113a
1<html>
2<head>
3<title>
4foo="<a"
5</title>
6<meta charset=KOI8-R>
7</head>
8<body>
9<pre id="log"></pre>
10<script>
11function log(message)
12{
13    document.getElementById("log").innerText += message + "\n";
14}
15
16if (window.layoutTestController)
17    layoutTestController.dumpAsText();
18
19if (document.inputEncoding == "KOI8-R")
20    log("PASS: " + document.inputEncoding);
21else
22    log("FAIL: " + document.inputEncoding);
23</script>
24<p>
25This test checks whether charset sniffer skips over quoted elements in a title tag correctly. Tests a bug in the charset sniffer that would consume all characters after the bracket in the quoted text until the next closing bracket, causing the closing title tag to be missed.
26</body>
27</html>
28