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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 type: 'HTMLQuoteElement', | 493 type: 'HTMLQuoteElement', |
494 elementToUse: document.createElement('q'), | 494 elementToUse: document.createElement('q'), |
495 attributes: [ | 495 attributes: [ |
496 {name: 'cite', expectedNull: 'null', isUrl:true} | 496 {name: 'cite', expectedNull: 'null', isUrl:true} |
497 ] | 497 ] |
498 }, | 498 }, |
499 { | 499 { |
500 type: 'HTMLScriptElement', | 500 type: 'HTMLScriptElement', |
501 elementToUse: document.createElement('script'), | 501 elementToUse: document.createElement('script'), |
502 attributes: [ | 502 attributes: [ |
503 {name: 'text', expectedNull: ''}, | 503 {name: 'text', expectedNull: 'null'}, |
504 {name: 'htmlFor', expectedNull: ''}, | 504 {name: 'htmlFor', expectedNull: 'null'}, |
505 {name: 'event', expectedNull: ''}, | 505 {name: 'event', expectedNull: 'null'}, |
506 {name: 'charset', expectedNull: ''}, | 506 {name: 'charset', expectedNull: 'null'}, |
507 {name: 'src', expectedNull: ''}, | 507 {name: 'src', expectedNull: 'null', isUrl: true}, |
508 {name: 'type', expectedNull: ''} | 508 {name: 'type', expectedNull: 'null'}, |
| 509 {name: 'crossOrigin', expectedNull: 'null'}, |
| 510 {name: 'nonce', expectedNull: 'null'} |
509 ] | 511 ] |
510 }, | 512 }, |
511 { | 513 { |
512 type: 'HTMLSelectElement', | 514 type: 'HTMLSelectElement', |
513 elementToUse: document.createElement('select'), | 515 elementToUse: document.createElement('select'), |
514 attributes: [ | 516 attributes: [ |
515 {name: 'value', expectedNull: ''}, | 517 {name: 'value', expectedNull: ''}, |
516 {name: 'name', expectedNull: ''} | 518 {name: 'name', expectedNull: ''} |
517 ] | 519 ] |
518 }, | 520 }, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 printOut(''); | 662 printOut(''); |
661 } | 663 } |
662 } | 664 } |
663 </script> | 665 </script> |
664 </head> | 666 </head> |
665 <body onload="runTests()"> | 667 <body onload="runTests()"> |
666 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 668 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
667 <div id="console"></div> | 669 <div id="console"></div> |
668 </body> | 670 </body> |
669 </html> | 671 </html> |
OLD | NEW |