content/base/crashtests/401993-1.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:9314e398e6a6
1 <html class="reftest-wait">
2 <head>
3 <script>
4
5 function s()
6 {
7 var x = document.getElementById("x");
8 x.style.MozBinding = "url(401993-1.xml#foo)";
9
10 setTimeout(boom, 0);
11
12 function boom()
13 {
14 var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(x));
15 if (!nodes) {
16 setTimeout(boom, 10);
17 return;
18 }
19
20 var newSpan = document.createElement("span");
21 newSpan.contentEditable = "true";
22 nodes[0].appendChild(newSpan);
23 x.parentNode.removeChild(x);
24
25 document.documentElement.removeAttribute("class");
26 }
27 }
28 </script>
29 </head>
30
31 <body onload="s();">
32
33 <span contenteditable="true"></span>
34
35 <div id="x"></div>
36
37 </body>
38 </html>

mercurial