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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 elementToUse: document.createElement('select'), | 566 elementToUse: document.createElement('select'), |
567 attributes: [ | 567 attributes: [ |
568 {name: 'value', expectedNull: ''}, | 568 {name: 'value', expectedNull: ''}, |
569 {name: 'name', expectedNull: 'null'} | 569 {name: 'name', expectedNull: 'null'} |
570 ] | 570 ] |
571 }, | 571 }, |
572 { | 572 { |
573 type: 'HTMLSourceElement', | 573 type: 'HTMLSourceElement', |
574 elementToUse: document.createElement('source'), | 574 elementToUse: document.createElement('source'), |
575 attributes: [ | 575 attributes: [ |
576 {name: 'media', expectedNull: 'null'}, | |
577 {name: 'src', expectedNull: 'null', isUrl: true}, | 576 {name: 'src', expectedNull: 'null', isUrl: true}, |
578 {name: 'type', expectedNull: 'null'} | 577 {name: 'type', expectedNull: 'null'} |
579 ] | 578 ] |
580 }, | 579 }, |
581 { | 580 { |
582 type: 'HTMLStyleElement', | 581 type: 'HTMLStyleElement', |
583 elementToUse: document.createElement('style'), | 582 elementToUse: document.createElement('style'), |
584 attributes: [ | 583 attributes: [ |
585 {name: 'media', expectedNull: 'null'}, | 584 {name: 'media', expectedNull: 'null'}, |
586 {name: 'type', expectedNull: 'null'} | 585 {name: 'type', expectedNull: 'null'} |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 printOut(''); | 715 printOut(''); |
717 } | 716 } |
718 } | 717 } |
719 </script> | 718 </script> |
720 </head> | 719 </head> |
721 <body onload="runTests()"> | 720 <body onload="runTests()"> |
722 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 721 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
723 <div id="console"></div> | 722 <div id="console"></div> |
724 </body> | 723 </body> |
725 </html> | 724 </html> |
OLD | NEW |