| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 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 type="text/javascript" charset="utf-8"> | 7 <script type="text/javascript" charset="utf-8"> |
| 8 function printOut(msg) | 8 function printOut(msg) |
| 9 { | 9 { |
| 10 var console = document.getElementById("console"); | 10 var console = document.getElementById("console"); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 function runTests() | 43 function runTests() |
| 44 { | 44 { |
| 45 if (window.testRunner) | 45 if (window.testRunner) |
| 46 testRunner.dumpAsText(); | 46 testRunner.dumpAsText(); |
| 47 | 47 |
| 48 var listing = [ | 48 var listing = [ |
| 49 { | 49 { |
| 50 type: 'Attr', | 50 type: 'Attr', |
| 51 elementToUse: document.createAttributeNS('http://www.w3.org/
1999/xhtml','anAttribute'), | 51 elementToUse: document.createAttribute('anAttribute'), |
| 52 attributes: [ | 52 attributes: [ |
| 53 {name: 'value', expectedNull: null} | 53 {name: 'value', expectedNull: null} |
| 54 ] | 54 ] |
| 55 }, | 55 }, |
| 56 { | 56 { |
| 57 type: 'ProcessingInstruction', | 57 type: 'ProcessingInstruction', |
| 58 elementToUse: document.createProcessingInstruction('target',
'data'), | 58 elementToUse: document.createProcessingInstruction('target',
'data'), |
| 59 attributes: [ | 59 attributes: [ |
| 60 {name: 'data', expectedNull: ''} | 60 {name: 'data', expectedNull: ''} |
| 61 ] | 61 ] |
| (...skipping 19 matching lines...) Expand all Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 </script> | 83 </script> |
| 84 </head> | 84 </head> |
| 85 | 85 |
| 86 <body onload="runTests();"> | 86 <body onload="runTests();"> |
| 87 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 87 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
| 88 <div id="console"></div> | 88 <div id="console"></div> |
| 89 </body> | 89 </body> |
| 90 </html> | 90 </html> |
| OLD | NEW |