/[suikacvs]/www/test/dom/document/view/new-xml-2.html
Suika

Contents of /www/test/dom/document/view/new-xml-2.html

Parent Directory Parent Directory | Revision Log Revision Log


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

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24