/[suikacvs]/www/test/dom/document/style/style-sheets/new-html-2.html
Suika

Contents of /www/test/dom/document/style/style-sheets/new-html-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sun Jan 13 03:12:04 2008 UTC (18 years, 5 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests; see <http://suika.fam.cx/gate/2005/sw/styleSheets> for results

1 wakaba 1.1 <!DOCTYPE HTML>
2     <html>
3     <head>
4     <title>document.styleSheets</title>
5     <script src="../../../../support/result0.js"></script>
6     </head>
7     <body>
8    
9     <p><code>createDocument ().styleSheets</code> = <script>
10    
11     var xhr;
12     try {
13     xhr = new XMLHttpRequest ();
14     } catch (e) {
15     xhr = new ActiveXObject ('Msxml2.XMLHTTP');
16     }
17    
18     xhr.open ('GET', 'test.html', false);
19     xhr.send (null);
20    
21     var doc = xhr.responseXML;
22     var ss = doc.styleSheets;
23     writeResult (ss);
24     </script>.</p>
25    
26     <script>
27     if (ss) {
28     document.write ('<ul>');
29     for (var v in ss) {
30     document.write ('<li><code>' + htescape (v) + '</code> = ');
31     writeResult (ss[v]);
32     document.write ('</li>');
33     }
34     document.write ('</ul>');
35     }
36     </script>
37    
38     </body>
39     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24