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) { | |
7 var c = document.getElementById('console') | |
8 c.appendChild(document.createTextNode(str + '\n')); | |
9 } | |
10 | |
11 function runTests() { | 6 function runTests() { |
12 if (window.testRunner) testRunner.dumpAsText(); | 7 if (window.testRunner) testRunner.dumpAsText(); |
13 | 8 |
14 var parser = new DOMParser(); | 9 var parser = new DOMParser(); |
15 parser.test = "test" | 10 parser.parseFromString("<marquee></marquee>", "text/html"); |
16 } | 11 } |
17 | |
18 </script> | 12 </script> |
19 </head> | 13 </head> |
20 <body onload="runTests();"> | 14 <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. | 15 This creates a DOMParser object and tries to parse a document containing a marqu
ee element (implemented in Private JS). |
| 16 If the test is successful, it should not crash. |
22 <pre id="console"> | 17 <pre id="console"> |
23 </pre> | 18 </pre> |
24 </body> | 19 </body> |
25 </html> | 20 </html> |
OLD | NEW |