| This tests that you can append children to a subtree that's being removed |
| from inside of an unload handler on a frame in that subtree. |
| <div><iframe src="about:blank"></iframe></div> |
| div = document.querySelector("div"); |
| iframe = document.querySelector("iframe"); |
| iframe.contentWindow.onunload = function() { |
| div.appendChild(document.createElement('span')); |
| document.body.appendChild(document.createTextNode('PASS')); |
| document.body.appendChild(document.createTextNode('FAIL: ' + e)); |
| div.parentNode.removeChild(div); |