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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 var htmlDoc = document.implementation.createHTMLDocument('A Title'); | 59 var htmlDoc = document.implementation.createHTMLDocument('A Title'); |
60 htmlDoc.body = htmlDoc.createElement('body'); | 60 htmlDoc.body = htmlDoc.createElement('body'); |
61 | 61 |
62 var listing = [ | 62 var listing = [ |
63 { | 63 { |
64 typeName: 'Document', | 64 typeName: 'Document', |
65 docToUse: xmlDoc, | 65 docToUse: xmlDoc, |
66 attributes: [ | 66 attributes: [ |
67 {name: 'xmlVersion', expectedExceptionCode: 9}, | 67 {name: 'xmlVersion', expectedExceptionCode: 9}, |
68 {name: 'documentURI', expectedNull: null}, | 68 {name: 'documentURI', expectedNull: null}, |
69 {name: 'charset', expectedNull: undefined}, | 69 {name: 'charset', expectedNull: 'UTF-8'}, |
| 70 {name: 'defaultCharset', expectedNull: undefined}, |
| 71 {name: 'characterSet', expectedNull: 'UTF-8'}, |
| 72 {name: 'inputEncoding', expectedNull: 'UTF-8'}, |
70 {name: 'selectedStylesheetSet', expectedNull: null} | 73 {name: 'selectedStylesheetSet', expectedNull: null} |
71 ] | 74 ] |
72 }, | 75 }, |
73 { | 76 { |
74 typeName: 'HTMLDocument', | 77 typeName: 'HTMLDocument', |
75 docToUse: htmlDoc, | 78 docToUse: htmlDoc, |
76 attributes: [ | 79 attributes: [ |
77 {name: 'title', expectedNull: ''}, | 80 {name: 'title', expectedNull: ''}, |
78 {name: 'cookie', expectedNull: ''}, | 81 {name: 'cookie', expectedNull: ''}, |
79 {name: 'bgColor', expectedNull: ''}, | 82 {name: 'bgColor', expectedNull: ''}, |
(...skipping 17 matching lines...) Expand all Loading... |
97 printOut(''); | 100 printOut(''); |
98 } | 101 } |
99 } | 102 } |
100 </script> | 103 </script> |
101 </head> | 104 </head> |
102 <body onload="runTests()"> | 105 <body onload="runTests()"> |
103 <p>This test setting various attributes of documents to JavaScript null.</p> | 106 <p>This test setting various attributes of documents to JavaScript null.</p> |
104 <div id="console"></div> | 107 <div id="console"></div> |
105 </body> | 108 </body> |
106 </html> | 109 </html> |
OLD | NEW |