2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / encoding / pseudo-xml.html
blob911d18c6d58fc58a7479b111ac62f9080bb9ebdd
1 <?xml version="1.0"?>
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 <body>
6 <p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9783">bug 9783</a>:
7 An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document</p>
9 <p id="result" />
11 <script>
12 if (window.layoutTestController)
13 layoutTestController.dumpAsText();
15 document.getElementById("result").innerHTML = "Charset: " +
16 (document.charset ? document.charset : document.characterSet) + " (should be your browser default one)";
17 </script>
19 </body>
20 </html>