blob: 0f47009ff0384aa49f72612cceca655e1ca848f2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function go()
{
var v = document.getElementById("v");
o.defaultValue = "x";
a.appendChild(v);
}
function eventhandler2()
{
var d = document.implementation.createHTMLDocument("doc");
var s = d.createElement("script");
s.prepend(v);
}
function eventhandler1()
{
v.appendChild(o);
o.addEventListener("DOMNodeRemoved", eventhandler2);
}
</script>
<body onload=go()>
This test passes if it does not assert or crash.
<a id="a"></a>
<output id="o">foo</output>
<video id="v"></video>
<svg>
<text onload="eventhandler1()" />
</body>
</html>