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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 { | 106 { |
107 type: 'HTMLAnchorElement', | 107 type: 'HTMLAnchorElement', |
108 elementToUse: document.createElement('a'), | 108 elementToUse: document.createElement('a'), |
109 attributes: [ | 109 attributes: [ |
110 {name: 'charset', expectedNull: 'null'}, | 110 {name: 'charset', expectedNull: 'null'}, |
111 {name: 'coords', expectedNull: 'null'}, | 111 {name: 'coords', expectedNull: 'null'}, |
112 {name: 'download', expectedNull: 'null'}, | 112 {name: 'download', expectedNull: 'null'}, |
113 {name: 'href', expectedNull: 'null', isUrl: true}, | 113 {name: 'href', expectedNull: 'null', isUrl: true}, |
114 {name: 'hreflang', expectedNull: 'null'}, | 114 {name: 'hreflang', expectedNull: 'null'}, |
115 {name: 'name', expectedNull: 'null'}, | 115 {name: 'name', expectedNull: 'null'}, |
116 {name: 'ping', expectedNull: 'null'}, | |
117 {name: 'rel', expectedNull: 'null'}, | 116 {name: 'rel', expectedNull: 'null'}, |
118 {name: 'rev', expectedNull: 'null'}, | 117 {name: 'rev', expectedNull: 'null'}, |
119 {name: 'shape', expectedNull: 'null'}, | 118 {name: 'shape', expectedNull: 'null'}, |
120 {name: 'target', expectedNull: 'null'}, | 119 {name: 'target', expectedNull: 'null'}, |
121 {name: 'type', expectedNull: 'null'} | 120 {name: 'type', expectedNull: 'null'} |
122 ] | 121 ] |
123 }, | 122 }, |
124 { | 123 { |
125 type: 'HTMLAreaElement', | 124 type: 'HTMLAreaElement', |
126 elementToUse: document.createElement('area'), | 125 elementToUse: document.createElement('area'), |
127 attributes: [ | 126 attributes: [ |
128 {name: 'alt', expectedNull: 'null'}, | 127 {name: 'alt', expectedNull: 'null'}, |
129 {name: 'coords', expectedNull: 'null'}, | 128 {name: 'coords', expectedNull: 'null'}, |
130 {name: 'href', expectedNull: 'null', isUrl: true}, | 129 {name: 'href', expectedNull: 'null', isUrl: true}, |
131 {name: 'ping', expectedNull: 'null'}, | |
132 {name: 'shape', expectedNull: 'null'}, | 130 {name: 'shape', expectedNull: 'null'}, |
133 {name: 'target', expectedNull: 'null'} | 131 {name: 'target', expectedNull: 'null'} |
134 ] | 132 ] |
135 }, | 133 }, |
136 { | 134 { |
137 type: 'HTMLAudioElement', | 135 type: 'HTMLAudioElement', |
138 elementToUse: document.createElement('audio'), | 136 elementToUse: document.createElement('audio'), |
139 attributes: [ | 137 attributes: [ |
140 {name: 'mediaGroup', expectedNull: 'null'}, | 138 {name: 'mediaGroup', expectedNull: 'null'}, |
141 {name: 'preload', expectedNull: 'auto'}, | 139 {name: 'preload', expectedNull: 'auto'}, |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 printOut(''); | 687 printOut(''); |
690 } | 688 } |
691 } | 689 } |
692 </script> | 690 </script> |
693 </head> | 691 </head> |
694 <body onload="runTests()"> | 692 <body onload="runTests()"> |
695 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 693 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
696 <div id="console"></div> | 694 <div id="console"></div> |
697 </body> | 695 </body> |
698 </html> | 696 </html> |
OLD | NEW |