adopt-assertion.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<p> 2 Test for <i><a href="https://bugs.webkit.org/attachment.cgi?id=30159">https://bugs.webkit.org/attachment.cgi?id=30159</a> 3 Assertion failure in Node::setDocument() 4 (willMoveToNewOwnerDocumentWasCalled) when adopting a <form> element</i>. 5</p> 6<p> 7 The test passed if the assertion did not fail. 8</p> 9<form id="target"></form> 10<script> 11 if (window.layoutTestController) 12 layoutTestController.dumpAsText(); 13 14 var otherDocument = document.implementation.createHTMLDocument(); 15 otherDocument.adoptNode(document.getElementById("target")); 16</script> 17