| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // CharacterData.data | 70 // CharacterData.data |
| 71 // ProcessingInstruction.data | 71 // ProcessingInstruction.data |
| 72 // Functions | 72 // Functions |
| 73 | 73 |
| 74 var listing = [ | 74 var listing = [ |
| 75 { | 75 { |
| 76 type: 'Node', | 76 type: 'Node', |
| 77 elementToUse: document.createElement('div'), | 77 elementToUse: document.createElement('div'), |
| 78 attributes: [ | 78 attributes: [ |
| 79 {name: 'nodeValue', expectedNull: null}, | 79 {name: 'nodeValue', expectedNull: null}, |
| 80 // 'prefix' only works because this is an HTMLElement t
ype node, if it were an | |
| 81 // XML node (created using createElementNS()) this woul
d throw an exception. We | |
| 82 // should test this further as Firefox has a different
behavior. | |
| 83 {name: 'prefix', expectedNull: null}, | |
| 84 {name: 'textContent', expectedNull: ''} | 80 {name: 'textContent', expectedNull: ''} |
| 85 ] | 81 ] |
| 86 }, | 82 }, |
| 87 { | 83 { |
| 88 type: 'Element', | 84 type: 'Element', |
| 89 elementToUse: document.createElementNS('http://example.com/'
, 'example'), | 85 elementToUse: document.createElementNS('http://example.com/'
, 'example'), |
| 90 attributes: [ | 86 attributes: [ |
| 91 {name: 'id', expectedNull: 'null'}, | 87 {name: 'id', expectedNull: 'null'}, |
| 92 {name: 'className', expectedNull: 'null'}, | 88 {name: 'className', expectedNull: 'null'}, |
| 93 {name: 'innerHTML', expectedNull: ''}, | 89 {name: 'innerHTML', expectedNull: ''}, |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 printOut(''); | 704 printOut(''); |
| 709 } | 705 } |
| 710 } | 706 } |
| 711 </script> | 707 </script> |
| 712 </head> | 708 </head> |
| 713 <body onload="runTests()"> | 709 <body onload="runTests()"> |
| 714 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 710 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
| 715 <div id="console"></div> | 711 <div id="console"></div> |
| 716 </body> | 712 </body> |
| 717 </html> | 713 </html> |
| OLD | NEW |