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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 {name: 'scrolling', expectedNull: 'null'}, | 327 {name: 'scrolling', expectedNull: 'null'}, |
328 {name: 'src', expectedNull: 'null', isUrl: true}, | 328 {name: 'src', expectedNull: 'null', isUrl: true}, |
329 {name: 'srcdoc', expectedNull: 'null'}, | 329 {name: 'srcdoc', expectedNull: 'null'}, |
330 {name: 'width', expectedNull: 'null'} | 330 {name: 'width', expectedNull: 'null'} |
331 ] | 331 ] |
332 }, | 332 }, |
333 { | 333 { |
334 type: 'HTMLImageElement', | 334 type: 'HTMLImageElement', |
335 elementToUse: document.createElement('img'), | 335 elementToUse: document.createElement('img'), |
336 attributes: [ | 336 attributes: [ |
337 {name: 'name', expectedNull: ''}, | 337 {name: 'align', expectedNull: 'null'}, |
338 {name: 'align', expectedNull: ''}, | 338 {name: 'alt', expectedNull: 'null'}, |
339 {name: 'alt', expectedNull: ''}, | |
340 {name: 'border', expectedNull: ''}, | 339 {name: 'border', expectedNull: ''}, |
341 {name: 'longDesc', expectedNull: ''}, | 340 {name: 'crossOrigin', expectedNull: 'null'}, |
342 {name: 'src', expectedNull: ''}, | 341 {name: 'longDesc', expectedNull: 'null', isUrl: true}, |
343 {name: 'useMap', expectedNull: ''}, | 342 {name: 'lowsrc', expectedNull: 'null', isUrl: true}, |
344 {name: 'lowsrc', expectedNull: ''} | 343 {name: 'name', expectedNull: 'null'}, |
| 344 {name: 'src', expectedNull: 'null', isUrl: true}, |
| 345 {name: 'srcset', expectedNull: 'null'}, |
| 346 {name: 'useMap', expectedNull: 'null'} |
345 ] | 347 ] |
346 }, | 348 }, |
347 { | 349 { |
348 type: 'HTMLInputElement', | 350 type: 'HTMLInputElement', |
349 elementToUse: document.createElement('input'), | 351 elementToUse: document.createElement('input'), |
350 attributes: [ | 352 attributes: [ |
351 {name: 'accept', expectedNull: ''}, | 353 {name: 'accept', expectedNull: ''}, |
352 {name: 'accessKey', expectedNull: ''}, | 354 {name: 'accessKey', expectedNull: ''}, |
353 {name: 'align', expectedNull: ''}, | 355 {name: 'align', expectedNull: ''}, |
354 {name: 'alt', expectedNull: ''}, | 356 {name: 'alt', expectedNull: ''}, |
(...skipping 305 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 |