1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" dir="ltr"> 2 <body> 3 <p>Test that external scripts in XHTML documents inherit document charset.</p> 4 <p id="result1">Javascript 1 (original document charset): </p> 5 <p id="result2">Javascript 2 (after document.charset was set): </p> 6 <script type="text/javascript" src="external-script-charset.js"></script> 7 <script>document.charset = "koi8-r";</script> 8 <script type="text/javascript" src="external-script-charset-koi-8.js"></script> 9 </body> 10 </html> 11