/[suikacvs]/www/test/dom/dom-implementation/create-document/cd-1.html
Suika

Contents of /www/test/dom/dom-implementation/create-document/cd-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Jan 13 12:22:49 2008 UTC (17 years, 3 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New; see <http://suika.fam.cx/gate/2005/sw/createDocument> for result

1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>createDocument</title>
5 <script src="../../../support/result0.js"></script>
6 </head>
7 <body>
8
9 <p><script>
10 var d = document.implementation.createDocument (null, null, null);
11 writeResult (d);
12
13 if (d) {
14 document.write ('<h1>The Document</h1>');
15 document.write ('<ul>');
16 for (var v in d) {
17 document.write ('<li><code>' + htescape (v) + '</code>: ');
18 try {
19 writeResult (d[v]);
20 } catch (e) {
21 document.write ('ERROR: ' + htescape ('' + e));
22 }
23 }
24 document.write ('</ul>');
25
26 var de = d.documentElement;
27 if (de) {
28 document.write ('<h1>The Document Element</h1>');
29 document.write ('<ul>');
30 for (var v in de) {
31 document.write ('<li><code>' + htescape (v) + '</code>: ');
32 try {
33 writeResult (de[v]);
34 } catch (e) {
35 document.write ('ERROR: ' + htescape ('' + e));
36 }
37 }
38 document.write ('</ul>');
39 }
40 }
41 </script></p>
42
43 </body>
44 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24