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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 elementToUse: document.createElement('input'), | 385 elementToUse: document.createElement('input'), |
386 attributes: [ | 386 attributes: [ |
387 {name: 'value', expectedNull: ''} | 387 {name: 'value', expectedNull: ''} |
388 ] | 388 ] |
389 }, | 389 }, |
390 { | 390 { |
391 type: 'HTMLKeygenElement', | 391 type: 'HTMLKeygenElement', |
392 elementToUse: document.createElement('keygen'), | 392 elementToUse: document.createElement('keygen'), |
393 attributes: [ | 393 attributes: [ |
394 {name: 'challenge', expectedNull: 'null'}, | 394 {name: 'challenge', expectedNull: 'null'}, |
395 {name: 'keytype', expectedNull: 'null'}, | 395 {name: 'keytype', expectedNull: ''}, |
396 {name: 'name', expectedNull: 'null'} | 396 {name: 'name', expectedNull: 'null'} |
397 ] | 397 ] |
398 }, | 398 }, |
399 { | 399 { |
400 type: 'HTMLLabelElement', | 400 type: 'HTMLLabelElement', |
401 elementToUse: document.createElement('label'), | 401 elementToUse: document.createElement('label'), |
402 attributes: [ | 402 attributes: [ |
403 {name: 'htmlFor', expectedNull: 'null'} | 403 {name: 'htmlFor', expectedNull: 'null'} |
404 ] | 404 ] |
405 }, | 405 }, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 printOut(''); | 719 printOut(''); |
720 } | 720 } |
721 } | 721 } |
722 </script> | 722 </script> |
723 </head> | 723 </head> |
724 <body onload="runTests()"> | 724 <body onload="runTests()"> |
725 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 725 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
726 <div id="console"></div> | 726 <div id="console"></div> |
727 </body> | 727 </body> |
728 </html> | 728 </html> |
OLD | NEW |