| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script> | 5 <script> |
| 6 function debug(str) { | 6 function debug(str) { |
| 7 var c = document.getElementById('console') | 7 var c = document.getElementById('console') |
| 8 c.appendChild(document.createTextNode(str + '\n')); | 8 c.appendChild(document.createTextNode(str + '\n')); |
| 9 } | 9 } |
| 10 | 10 |
| 11 function runTests() { | 11 function runTests() { |
| 12 if (window.testRunner) testRunner.dumpAsText(); | 12 if (window.testRunner) testRunner.dumpAsText(); |
| 13 | 13 |
| 14 var parser = new DOMParser(); | 14 var parser = new DOMParser(); |
| 15 parser.test = "test" | 15 parser.test = "test" |
| 16 } | 16 } |
| 17 | 17 |
| 18 </script> | 18 </script> |
| 19 </head> | 19 </head> |
| 20 <body onload="runTests();"> | 20 <body onload="runTests();"> |
| 21 This creates a DOMParser object and tries to assign it to a variable. If the tes
t is successful, it should not crash. | 21 This creates a DOMParser object and tries to assign it to a variable. If the tes
t is successful, it should not crash. |
| 22 <pre id="console"> | 22 <pre id="console"> |
| 23 </pre> | 23 </pre> |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |