| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <head> | |
| 3 <meta charset="utf-8"> | |
| 4 <title>Script changing @charset</title> | |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#scriptingLanguage
s"> | |
| 6 <script src="/resources/testharness.js"></script> | |
| 7 <script src="/resources/testharnessreport.js"></script> | |
| 8 <div id="log"></div> | |
| 9 <script> | |
| 10 async_test(function() { | |
| 11 var s = document.createElement("script"); | |
| 12 s.src = "external-script-windows1250.js"; | |
| 13 s.charset = "windows-1250"; | |
| 14 document.body.appendChild(s); | |
| 15 s.charset = "utf-8"; | |
| 16 window.onload = this.step_func_done(function() { | |
| 17 assert_equals(window.getSomeString(), "\u015b\u0107\u0105\u017c\u017a"); | |
| 18 }); | |
| 19 }) | |
| 20 </script> | |
| OLD | NEW |