1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/crashtests/366200-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 + 1.6 +<head> 1.7 +<script type="text/javascript"> 1.8 + 1.9 +<![CDATA[ 1.10 + 1.11 +function boom() 1.12 +{ 1.13 + var dE = document.documentElement; 1.14 + var newSpan = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); 1.15 + 1.16 + document.addEventListener("DOMNodeRemoved", whee, false); 1.17 + document.removeChild(dE); 1.18 + document.removeEventListener("DOMNodeRemoved", whee, false); 1.19 + 1.20 + function whee() 1.21 + { 1.22 + document.removeEventListener("DOMNodeRemoved", whee, false); 1.23 + document.insertBefore(newSpan, dE); 1.24 + } 1.25 +} 1.26 + 1.27 +window.addEventListener("load", boom, false); 1.28 + 1.29 +]]> 1.30 + 1.31 +</script> 1.32 +</head> 1.33 + 1.34 +<body> 1.35 +<p>This text will disappear. There should be no assertions.</p> 1.36 +</body> 1.37 +</html>