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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 { | 292 { |
293 type: 'HTMLHeadingElement', | 293 type: 'HTMLHeadingElement', |
294 // no need to test h2-h6 | 294 // no need to test h2-h6 |
295 elementToUse: document.createElement('h1'), | 295 elementToUse: document.createElement('h1'), |
296 attributes: [ | 296 attributes: [ |
297 {name: 'align', expectedNull: ''} | 297 {name: 'align', expectedNull: ''} |
298 ] | 298 ] |
299 }, | 299 }, |
300 { | 300 { |
301 type: 'HTMLHRElement', | 301 type: 'HTMLHRElement', |
302 elementToUse: document.createElement('hr'), // no need to te
st h2-h6 | 302 elementToUse: document.createElement('hr'), |
303 attributes: [ | 303 attributes: [ |
304 {name: 'align', expectedNull: ''}, | 304 {name: 'align', expectedNull: 'null'}, |
305 {name: 'size', expectedNull: ''}, | 305 {name: 'color', expectedNull: 'null'}, |
306 {name: 'width', expectedNull: ''} | 306 {name: 'size', expectedNull: 'null'}, |
| 307 {name: 'width', expectedNull: 'null'} |
307 ] | 308 ] |
308 }, | 309 }, |
309 { | 310 { |
310 type: 'HTMLHtmlElement', | 311 type: 'HTMLHtmlElement', |
311 elementToUse: document.createElement('html'), | 312 elementToUse: document.createElement('html'), |
312 attributes: [ | 313 attributes: [ |
313 {name: 'version', expectedNull: ''} | 314 {name: 'version', expectedNull: ''} |
314 ] | 315 ] |
315 }, | 316 }, |
316 { | 317 { |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 printOut(''); | 661 printOut(''); |
661 } | 662 } |
662 } | 663 } |
663 </script> | 664 </script> |
664 </head> | 665 </head> |
665 <body onload="runTests()"> | 666 <body onload="runTests()"> |
666 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 667 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
667 <div id="console"></div> | 668 <div id="console"></div> |
668 </body> | 669 </body> |
669 </html> | 670 </html> |
OLD | NEW |