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

Side by Side Diff: LayoutTests/fast/encoding/css-charset-dom.html

Issue 756313002: Remove CSSCharsetRule (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
4 <link rel="stylesheet" type="text/css" href="css-charset.css" charset="windo ws-1251">
5 <!-- The document charset and link charset have lower priority than @charset , so they
6 shouldn't affect anything. -->
7 </head>
8 <body onload="test()">
9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=10676">bug 10676</a >:
10 @charset rules not accessible via DOM</p>
11
12 <p id="result"></p>
13
14 <script>
15 if (window.testRunner)
16 testRunner.dumpAsText();
17
18 function test() {
19 try {
20 charsetRule = document.styleSheets[0].cssRules[0];
21 document.getElementById("result").innerHTML = "cssText: " + charsetRule.cssT ext + "<br>encoding: " + charsetRule.encoding;
22 document.getElementById("result").innerHTML += "<br>Resetting encoding...";
23 charsetRule.encoding = "koi8-r";
24 document.getElementById("result").innerHTML += "<br>cssText: " + charsetRule .cssText + "<br>encoding: " + charsetRule.encoding;
25 } catch (ex) {
26 document.getElementById("result").textContent = ex.toString();
27 }
28 }
29 </script>
30
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/css-charset-default.xhtml ('k') | LayoutTests/fast/encoding/css-charset-dom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698