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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // XML node (created using createElementNS()) this woul
d throw an exception. We | 81 // XML node (created using createElementNS()) this woul
d throw an exception. We |
82 // should test this further as Firefox has a different
behavior. | 82 // should test this further as Firefox has a different
behavior. |
83 {name: 'prefix', expectedNull: null}, | 83 {name: 'prefix', expectedNull: null}, |
84 {name: 'textContent', expectedNull: ''} | 84 {name: 'textContent', expectedNull: ''} |
85 ] | 85 ] |
86 }, | 86 }, |
87 { | 87 { |
88 type: 'Element', | 88 type: 'Element', |
89 elementToUse: document.createElementNS('http://example.com/'
, 'example'), | 89 elementToUse: document.createElementNS('http://example.com/'
, 'example'), |
90 attributes: [ | 90 attributes: [ |
91 {name: 'id', expectedNull: ''}, | 91 {name: 'id', expectedNull: 'null'}, |
92 {name: 'className', expectedNull: ''}, | 92 {name: 'className', expectedNull: 'null'}, |
93 {name: 'innerHTML', expectedNull: ''}, | 93 {name: 'innerHTML', expectedNull: ''}, |
94 {name: 'outerHTML', expectedNull: 'exception'} | 94 {name: 'outerHTML', expectedNull: 'exception'} |
95 ] | 95 ] |
96 }, | 96 }, |
97 { | 97 { |
98 type: 'HTMLElement', | 98 type: 'HTMLElement', |
99 elementToUse: document.createElement('abbr'), | 99 elementToUse: document.createElement('abbr'), |
100 attributes: [ | 100 attributes: [ |
101 {name: 'accessKey', expectedNull: 'null'}, | 101 {name: 'accessKey', expectedNull: 'null'}, |
102 {name: 'title', expectedNull: 'null'}, | 102 {name: 'title', expectedNull: 'null'}, |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 printOut(''); | 719 printOut(''); |
720 } | 720 } |
721 } | 721 } |
722 </script> | 722 </script> |
723 </head> | 723 </head> |
724 <body onload="runTests()"> | 724 <body onload="runTests()"> |
725 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 725 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
726 <div id="console"></div> | 726 <div id="console"></div> |
727 </body> | 727 </body> |
728 </html> | 728 </html> |
OLD | NEW |