1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <body> 3 <p>Test default XHTML encoding (in the absence of an XML declaration).</p> 4 5 <p id="result" /> 6 7 <script> 8 if (window.layoutTestController) 9 layoutTestController.dumpAsText(); 10 11 document.getElementById("result").innerHTML = "Charset: " + 12 (document.charset ? document.charset : document.characterSet) + " (should be UTF-8)"; 13 </script> 14 15 </body> 16 </html> 17