content/base/crashtests/345837-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/345837-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +
     1.6 +<head>
     1.7 +<script>
     1.8 +<![CDATA[
     1.9 +
    1.10 +function foo()
    1.11 +{
    1.12 +  var r = document.createRange(); 
    1.13 +  r.setStart(document.getElementById("a"), 0); 
    1.14 +  r.setEnd(document.getElementById("b"), 0); 
    1.15 +  window.getSelection().addRange(r);
    1.16 +
    1.17 +  var everything = document.getElementById("everything");
    1.18 +  everything.parentNode.removeChild(everything);
    1.19 +  
    1.20 +  document.documentElement.removeAttribute("class");
    1.21 +}
    1.22 +
    1.23 +]]>
    1.24 +</script>
    1.25 +</head>
    1.26 +
    1.27 +<body onload="setTimeout(foo, 30);">
    1.28 +
    1.29 +<div id="everything">
    1.30 +
    1.31 +<div id="a">
    1.32 +  <span id="b" />
    1.33 +</div>
    1.34 +
    1.35 +</div>
    1.36 +
    1.37 +</body>
    1.38 +</html>

mercurial