1 <html> 2 <head> 3 <title> 4 foo="<a" 5 </title> 6 <meta charset=KOI8-R> 7 </head> 8 <body> 9 <pre id="log"></pre> 10 <script> 11 function log(message) 12 { 13 document.getElementById("log").innerText += message + "\n"; 14 } 15 16 if (window.layoutTestController) 17 layoutTestController.dumpAsText(); 18 19 if (document.inputEncoding == "KOI8-R") 20 log("PASS: " + document.inputEncoding); 21 else 22 log("FAIL: " + document.inputEncoding); 23 </script> 24 <p> 25 This 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