| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <body> |
| 4 <p id="foo"> |
| 5 <output form="foo" id="foo"></output> |
| 6 </p> |
| 4 <script> | 7 <script> |
| 5 if (window.testRunner) { | 8 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| 8 } | 11 } |
| 9 | 12 window.onload = function () { |
| 10 function done() | 13 document.body.removeChild(document.querySelector("p")); |
| 11 { | 14 document.body.innerHTML = 'PASS; no crash.'; |
| 12 if (window.testRunner) | 15 if (window.testRunner) |
| 13 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
| 14 } | 17 }; |
| 15 </script> | 18 </script> |
| 16 </head> | |
| 17 <body> | |
| 18 <iframe sandbox="allow-scripts" src="data:text/html,<script>document.domain='127
.0.0.1'</script>" onload="done()"> | |
| 19 </iframe> | |
| 20 </body> | 19 </body> |
| 21 </html> | 20 </html> |
| OLD | NEW |