Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <body> | |
|
esprehn
2015/07/14 07:29:17
Add a DOCTYPE unless this test needs quirks mode.
| |
| 2 If this does not assert in a debug build, the test passed. | |
| 3 <div id="f1"> | |
| 4 <div id="f2"></div> | |
| 5 <script> | |
| 6 if (window.testRunner) | |
| 7 testRunner.dumpAsText(); | |
| 8 | |
| 9 var doc = document.implementation.createDocument("http://www.w3.org/2000/svg", | |
| 10 null); | |
| 11 f1.addEventListener("DOMNodeRemovedFromDocument", function () { | |
| 12 doc.appendChild(f2); | |
| 13 }); | |
| 14 try { | |
| 15 doc.appendChild(f1); | |
| 16 } catch (e) { | |
| 17 console.log(e.message); | |
| 18 } | |
| 19 </script> | |
| OLD | NEW |