| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 Test passes if it does not crash. | 7 Test passes if it does not crash. |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 if (window.layoutTestController) | 10 if (window.layoutTestController) |
| 11 layoutTestController.dumpAsText(); | 11 layoutTestController.dumpAsText(); |
| 12 | 12 |
| 13 iframe1 = document.createElement('iframe'); | 13 iframe1 = document.createElement('iframe'); |
| 14 document.body.appendChild(iframe1); | 14 document.body.appendChild(iframe1); |
| 15 document1 = iframe1.contentDocument.implementation.createHTMLDocument("document"
); | 15 document1 = iframe1.contentDocument.implementation.createHTMLDocument("document"
); |
| 16 var body1 = document1.body; | 16 var body1 = document1.body; |
| 17 document1.alinkColor = "blue"; | 17 document1.alinkColor = "blue"; |
| 18 var body2 = body1.cloneNode(true); | 18 var body2 = body1.cloneNode(true); |
| 19 document1.body = document1.createElement('body'); | 19 document1.body = document1.createElement('body'); |
| 20 delete document1; | 20 delete document1; |
| 21 gc(); | 21 gc(); |
| 22 body2.vLink = 1; | 22 body2.vLink = 1; |
| 23 | 23 |
| 24 var successfullyParsed = true; | 24 var successfullyParsed = true; |
| 25 </script> | 25 </script> |
| 26 <script src="../js/resources/js-test-post.js"></script> | 26 <script src="../js/resources/js-test-post.js"></script> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |