/[suikacvs]/www/test/dom/document/header/xml-version/set-num1.html
Suika

Contents of /www/test/dom/document/header/xml-version/set-num1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sun Jun 17 01:03:36 2007 UTC (19 years, 1 month ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
See <http://suika.fam.cx/gate/2005/sw/xmlVersion>, <http://suika.fam.cx/gate/2005/sw/xmlStandalone>, and <http://suika.fam.cx/gate/2005/sw/xmlEncoding>; note that all files other than mktest.pl are generated by mktest.pl

1 wakaba 1.1 <!DOCTYPE html><html><head>
2     <title>document.xmlVersion = 1.0</title>
3     <script src="../../../../support/result.js"></script>
4     </head>
5     <body>
6     <p id="result" class="FAIL">FAIL (not executed)</p>
7     <script>
8     var result = document.getElementById ('result');
9     result.firstChild.data = 'FAIL (script error)';
10     if (document.xmlVersion === null) {
11     try {
12     document.xmlVersion = 1.0;
13     var xv = document.xmlVersion;
14     if (xv === 1.0) {
15     result.firstChild.data = 'new value';
16     result.className = 'see-detail';
17     } else if (xv === null) {
18     result.firstChild.data = 'original value';
19     result.className = 'see-detail';
20     } else {
21     setResult ('result', xv);
22     }
23     } catch (e) {
24     result.firstChild.data = e.toString ();
25     result.className = 'see-detail';
26     }
27     } else {
28     result.firstChild.data = 'N/A';
29     result.className = 'NA';
30     }
31     </script>
32     </body>
33     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24