Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / encoding / pseudo-xml-4.html
1 <?xml version="1.0" encoding="KOI8-R" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3     "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
7 </head>
8 <body>
9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9783">bug 9783</a>:
10 An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document</p>
11
12 <p id="result" />
13
14 <script>
15 if (window.testRunner)
16     testRunner.dumpAsText();
17
18 document.getElementById("result").innerHTML = "Charset: " + 
19     (document.charset ? document.charset : document.characterSet) + " (should be windows-1251)";
20 </script>
21
22 </body>
23 </html>