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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // using [TreatNullAs=EmptyString], but until then test value se
parately to avoid | 351 // using [TreatNullAs=EmptyString], but until then test value se
parately to avoid |
352 // interference from the defaultValue test. | 352 // interference from the defaultValue test. |
353 { | 353 { |
354 type: 'HTMLInputElement', | 354 type: 'HTMLInputElement', |
355 elementToUse: document.createElement('input'), | 355 elementToUse: document.createElement('input'), |
356 attributes: [ | 356 attributes: [ |
357 {name: 'value', expectedNull: ''} | 357 {name: 'value', expectedNull: ''} |
358 ] | 358 ] |
359 }, | 359 }, |
360 { | 360 { |
361 type: 'HTMLKeygenElement', | |
362 elementToUse: document.createElement('keygen'), | |
363 attributes: [ | |
364 {name: 'challenge', expectedNull: 'null'}, | |
365 {name: 'keytype', expectedNull: ''}, | |
366 {name: 'name', expectedNull: 'null'} | |
367 ] | |
368 }, | |
369 { | |
370 type: 'HTMLLabelElement', | 361 type: 'HTMLLabelElement', |
371 elementToUse: document.createElement('label'), | 362 elementToUse: document.createElement('label'), |
372 attributes: [ | 363 attributes: [ |
373 {name: 'htmlFor', expectedNull: 'null'} | 364 {name: 'htmlFor', expectedNull: 'null'} |
374 ] | 365 ] |
375 }, | 366 }, |
376 { | 367 { |
377 type: 'HTMLLegendElement', | 368 type: 'HTMLLegendElement', |
378 elementToUse: document.createElement('legend'), | 369 elementToUse: document.createElement('legend'), |
379 attributes: [ | 370 attributes: [ |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 printOut(''); | 678 printOut(''); |
688 } | 679 } |
689 } | 680 } |
690 </script> | 681 </script> |
691 </head> | 682 </head> |
692 <body onload="runTests()"> | 683 <body onload="runTests()"> |
693 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 684 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
694 <div id="console"></div> | 685 <div id="console"></div> |
695 </body> | 686 </body> |
696 </html> | 687 </html> |
OLD | NEW |