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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 type: 'HTMLLIElement', | 380 type: 'HTMLLIElement', |
381 elementToUse: document.createElement('li'), | 381 elementToUse: document.createElement('li'), |
382 attributes: [ | 382 attributes: [ |
383 {name: 'type', expectedNull: 'null'} | 383 {name: 'type', expectedNull: 'null'} |
384 ] | 384 ] |
385 }, | 385 }, |
386 { | 386 { |
387 type: 'HTMLLinkElement', | 387 type: 'HTMLLinkElement', |
388 elementToUse: document.createElement('link'), | 388 elementToUse: document.createElement('link'), |
389 attributes: [ | 389 attributes: [ |
390 {name: 'charset', expectedNull: ''}, | 390 {name: 'charset', expectedNull: 'null'}, |
391 {name: 'href', expectedNull: ''}, | 391 {name: 'href', expectedNull: 'null', isUrl: true}, |
392 {name: 'hreflang', expectedNull: ''}, | 392 {name: 'hreflang', expectedNull: 'null'}, |
393 {name: 'media', expectedNull: ''}, | 393 {name: 'media', expectedNull: 'null'}, |
394 {name: 'rel', expectedNull: ''}, | 394 {name: 'rel', expectedNull: 'null'}, |
395 {name: 'rev', expectedNull: ''}, | 395 {name: 'rev', expectedNull: 'null'}, |
396 {name: 'target', expectedNull: ''}, | 396 {name: 'target', expectedNull: 'null'}, |
397 {name: 'type', expectedNull: ''} | 397 {name: 'type', expectedNull: 'null'} |
398 ] | 398 ] |
399 }, | 399 }, |
400 { | 400 { |
401 type: 'HTMLMapElement', | 401 type: 'HTMLMapElement', |
402 elementToUse: document.createElement('map'), | 402 elementToUse: document.createElement('map'), |
403 attributes: [ | 403 attributes: [ |
404 {name: 'name', expectedNull: ''} | 404 {name: 'name', expectedNull: ''} |
405 ] | 405 ] |
406 }, | 406 }, |
407 | 407 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 printOut(''); | 660 printOut(''); |
661 } | 661 } |
662 } | 662 } |
663 </script> | 663 </script> |
664 </head> | 664 </head> |
665 <body onload="runTests()"> | 665 <body onload="runTests()"> |
666 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 666 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
667 <div id="console"></div> | 667 <div id="console"></div> |
668 </body> | 668 </body> |
669 </html> | 669 </html> |
OLD | NEW |