no-charset-on-dynamic-script-load.html revision fd5c6425ce58eb75211be7718d5dee960842a37e
1<html>
2    <head>
3        <title>Encoding test.</title>
4        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
5           </head>
6    <body>
7        This page tests that the character encoding is used for dynamically loaded 
8        scripts when no charset is specified directly or provided by the server.
9        
10        <div id="target"></div>
11        <script>
12            if (window.layoutTestController) {
13                window.layoutTestController.waitUntilDone();
14                window.layoutTestController.dumpAsText();
15            }
16            tokyo = 'とうきょう';
17            oDIVResults=document.createElement('script'); 
18            oDIVResults.src="resources/dynamic-load-target.js";
19            document.getElementsByTagName("head").item(0).appendChild(oDIVResults);
20        </script>
21    </body>
22</html>
23