Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Document/document-charset.html

Issue 1707473002: Remove document.defaultCharset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>&nbsp;document.charset: " + document.charset + "</p>"); // MS IE 13 document.write("<p>&nbsp;document.charset: " + document.charset + "</p>"); // MS IE
14 document.write("<p>&nbsp;document.defaultCharset: " + (document.defaultCharset ? "defined" : "undefined") + "</p>"); // MSIE
15 document.write("<p>&nbsp;document.characterSet: " + document.characterSet + "</p >"); // Firefox 14 document.write("<p>&nbsp;document.characterSet: " + document.characterSet + "</p >"); // Firefox
16 document.write("<p>&nbsp;document.inputEncoding: " + document.inputEncoding + "< /p>"); // DOM3 15 document.write("<p>&nbsp;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>&nbsp;document.charset: " + document.charset + "</p>"); 19 document.write("<p>&nbsp;document.charset: " + document.charset + "</p>");
21 document.write("<p>&nbsp;document.defaultCharset: " + (document.defaultCharset ? "defined" : "undefined") + "</p>");
22 document.write("<p>&nbsp;document.characterSet: " + document.characterSet + "</p >"); 20 document.write("<p>&nbsp;document.characterSet: " + document.characterSet + "</p >");
23 document.write("<p>&nbsp;document.inputEncoding: " + document.inputEncoding + "< /p>"); 21 document.write("<p>&nbsp;document.inputEncoding: " + document.inputEncoding + "< /p>");
24 22
25 </script> 23 </script>
26 </body> 24 </body>
27 <html> 25 <html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698