OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 .pass { color: green; } | 4 .pass { color: green; } |
5 .fail { color: red; } | 5 .fail { color: red; } |
6 </style> | 6 </style> |
7 <script> | 7 <script> |
8 function printOut(msg) | 8 function printOut(msg) |
9 { | 9 { |
10 var console = document.getElementById("console"); | 10 var console = document.getElementById("console"); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 var xmlDoc = document.implementation.createDocument(null, null, null
); | 60 var xmlDoc = document.implementation.createDocument(null, null, null
); |
61 var htmlDoc = document.implementation.createHTMLDocument('A Title'); | 61 var htmlDoc = document.implementation.createHTMLDocument('A Title'); |
62 htmlDoc.body = htmlDoc.createElement('body'); | 62 htmlDoc.body = htmlDoc.createElement('body'); |
63 | 63 |
64 var listing = [ | 64 var listing = [ |
65 { | 65 { |
66 typeName: 'Document', | 66 typeName: 'Document', |
67 docToUse: xmlDoc, | 67 docToUse: xmlDoc, |
68 attributes: [ | 68 attributes: [ |
69 {name: 'xmlVersion', expectedExceptionCode: 9}, | 69 {name: 'xmlVersion', expectedExceptionCode: 9}, |
70 {name: 'documentURI', expectedNull: null}, | 70 {name: 'documentURI', expectedNull: 'about:blank'}, |
71 {name: 'charset', expectedNull: 'UTF-8'}, | 71 {name: 'charset', expectedNull: 'UTF-8'}, |
72 {name: 'characterSet', expectedNull: 'UTF-8'}, | 72 {name: 'characterSet', expectedNull: 'UTF-8'}, |
73 {name: 'inputEncoding', expectedNull: 'UTF-8'}, | 73 {name: 'inputEncoding', expectedNull: 'UTF-8'}, |
74 {name: 'selectedStylesheetSet', expectedNull: null} | 74 {name: 'selectedStylesheetSet', expectedNull: null} |
75 ] | 75 ] |
76 }, | 76 }, |
77 { | 77 { |
78 typeName: 'HTMLDocument', | 78 typeName: 'HTMLDocument', |
79 docToUse: htmlDoc, | 79 docToUse: htmlDoc, |
80 attributes: [ | 80 attributes: [ |
(...skipping 20 matching lines...) Expand all Loading... |
101 printOut(''); | 101 printOut(''); |
102 } | 102 } |
103 } | 103 } |
104 </script> | 104 </script> |
105 </head> | 105 </head> |
106 <body onload="runTests()"> | 106 <body onload="runTests()"> |
107 <p>This test setting various attributes of documents to JavaScript null.</p> | 107 <p>This test setting various attributes of documents to JavaScript null.</p> |
108 <div id="console"></div> | 108 <div id="console"></div> |
109 </body> | 109 </body> |
110 </html> | 110 </html> |
OLD | NEW |