| <body onload="runTest()"> |
| <p>Tests that validity of node insertion is retained after removing nodes from a parent. The test passes if we do not crash and we encounter a HierarchyRequestError.</p> |
| testRunner.waitUntilDone(); |
| var first = document.getElementById('first'); |
| var second = document.getElementById('second'); |
| second.addEventListener('DOMNodeRemoved', function() { |
| second.appendChild(first); |
| var errorName = 'No errors'; |
| first.appendChild(second); |
| if (errorName == 'HierarchyRequestError') |
| document.getElementById('logger').innerHTML += state + ': Encountered: ' + errorName + '\n'; |