| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4 <meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> | 
| 5 </head> | 5 </head> | 
| 6 <body> | 6 <body> | 
| 7 <script> | 7 <script> | 
| 8 | 8 | 
| 9 if (window.testRunner) | 9 if (window.testRunner) | 
| 10     testRunner.dumpAsText(); | 10     testRunner.dumpAsText(); | 
| 11 | 11 | 
| 12 document.write("<p>Initial</p>"); | 12 document.write("<p>Initial</p>"); | 
| 13 document.write("<p> document.charset: " + document.charset + "</p>"); // MS
    IE | 13 document.write("<p> document.charset: " + document.charset + "</p>"); // MS
    IE | 
| 14 document.write("<p> document.defaultCharset: " + (document.defaultCharset ?
     "defined" : "undefined") + "</p>"); // MSIE |  | 
| 15 document.write("<p> document.characterSet: " + document.characterSet + "</p
    >"); // Firefox | 14 document.write("<p> document.characterSet: " + document.characterSet + "</p
    >"); // Firefox | 
| 16 document.write("<p> document.inputEncoding: " + document.inputEncoding + "<
    /p>"); // DOM3 | 15 document.write("<p> document.inputEncoding: " + document.inputEncoding + "<
    /p>"); // DOM3 | 
| 17 | 16 | 
| 18 document.write("<p>Setting charset to UTF-8... (expected to have no effect)</p>"
    ); | 17 document.write("<p>Setting charset to UTF-8... (expected to have no effect)</p>"
    ); | 
| 19 document.charset = "utf-8"; | 18 document.charset = "utf-8"; | 
| 20 document.write("<p> document.charset: " + document.charset + "</p>"); | 19 document.write("<p> document.charset: " + document.charset + "</p>"); | 
| 21 document.write("<p> document.defaultCharset: " + (document.defaultCharset ?
     "defined" : "undefined") + "</p>"); |  | 
| 22 document.write("<p> document.characterSet: " + document.characterSet + "</p
    >"); | 20 document.write("<p> document.characterSet: " + document.characterSet + "</p
    >"); | 
| 23 document.write("<p> document.inputEncoding: " + document.inputEncoding + "<
    /p>"); | 21 document.write("<p> document.inputEncoding: " + document.inputEncoding + "<
    /p>"); | 
| 24 | 22 | 
| 25 </script> | 23 </script> | 
| 26 </body> | 24 </body> | 
| 27 <html> | 25 <html> | 
| OLD | NEW | 
|---|