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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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'}, |
103 {name: 'lang', expectedNull: 'null'}, | 103 {name: 'lang', expectedNull: 'null'}, |
104 {name: 'dir', expectedNull: 'null'}, | 104 {name: 'dir', expectedNull: ''}, |
105 {name: 'innerText', expectedNull: ''}, | 105 {name: 'innerText', expectedNull: ''}, |
106 {name: 'outerText', expectedNull: 'exception'}, | 106 {name: 'outerText', expectedNull: 'exception'}, |
107 {name: 'contentEditable', expectedNull: 'exception'} | 107 {name: 'contentEditable', expectedNull: 'exception'} |
108 ] | 108 ] |
109 }, | 109 }, |
110 { | 110 { |
111 type: 'HTMLAnchorElement', | 111 type: 'HTMLAnchorElement', |
112 elementToUse: document.createElement('a'), | 112 elementToUse: document.createElement('a'), |
113 attributes: [ | 113 attributes: [ |
114 {name: 'charset', expectedNull: 'null'}, | 114 {name: 'charset', expectedNull: 'null'}, |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 printOut(''); | 716 printOut(''); |
717 } | 717 } |
718 } | 718 } |
719 </script> | 719 </script> |
720 </head> | 720 </head> |
721 <body onload="runTests()"> | 721 <body onload="runTests()"> |
722 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 722 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
723 <div id="console"></div> | 723 <div id="console"></div> |
724 </body> | 724 </body> |
725 </html> | 725 </html> |
OLD | NEW |