gecko-dev/dom/base/crashtests/490760-1.xhtml

26 строки
519 B
HTML
Исходник Обычный вид История

2009-05-17 18:22:55 +04:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
<![CDATA[
function boom()
{
var q = document.getElementsByTagName("style")[0];
window.addEventListener("DOMNodeRemoved", f);
2009-05-17 18:22:55 +04:00
q.innerHTML = "<span><\/span>";
window.removeEventListener("DOMNodeRemoved", f);
2009-05-17 18:22:55 +04:00
function f()
{
window.removeEventListener("DOMNodeRemoved", f);
2009-05-17 18:22:55 +04:00
q.removeChild(q.childNodes[1]);
}
}
]]>
</script>
</head>
<body onload="boom();"><style><span></span><span></span></style></body>
</html>