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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 {name: 'type', expectedNull: 'null'}, | 562 {name: 'type', expectedNull: 'null'}, |
563 {name: 'crossOrigin', expectedNull: 'null'}, | 563 {name: 'crossOrigin', expectedNull: 'null'}, |
564 {name: 'nonce', expectedNull: 'null'} | 564 {name: 'nonce', expectedNull: 'null'} |
565 ] | 565 ] |
566 }, | 566 }, |
567 { | 567 { |
568 type: 'HTMLSelectElement', | 568 type: 'HTMLSelectElement', |
569 elementToUse: document.createElement('select'), | 569 elementToUse: document.createElement('select'), |
570 attributes: [ | 570 attributes: [ |
571 {name: 'value', expectedNull: ''}, | 571 {name: 'value', expectedNull: ''}, |
572 {name: 'name', expectedNull: ''} | 572 {name: 'name', expectedNull: 'null'} |
573 ] | 573 ] |
574 }, | 574 }, |
575 { | 575 { |
576 type: 'HTMLSourceElement', | 576 type: 'HTMLSourceElement', |
577 elementToUse: document.createElement('source'), | 577 elementToUse: document.createElement('source'), |
578 attributes: [ | 578 attributes: [ |
579 {name: 'media', expectedNull: 'null'}, | 579 {name: 'media', expectedNull: 'null'}, |
580 {name: 'src', expectedNull: 'null', isUrl: true}, | 580 {name: 'src', expectedNull: 'null', isUrl: true}, |
581 {name: 'type', expectedNull: 'null'} | 581 {name: 'type', expectedNull: 'null'} |
582 ] | 582 ] |
(...skipping 133 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 |