|
1 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"><script><![CDATA[ |
|
2 |
|
3 function init() |
|
4 { |
|
5 var div2 = document.getElementById("div2"); |
|
6 var div1 = document.getElementById("div1"); |
|
7 var docElt = document.documentElement; |
|
8 var titleText = document.createTextNode("foo baz"); |
|
9 |
|
10 docElt.appendChild(div2); |
|
11 div2.appendChild(titleText); |
|
12 |
|
13 function second () |
|
14 { |
|
15 div2.appendChild(div1); |
|
16 removeNode(titleText); |
|
17 removeNode(div2); |
|
18 document.documentElement.removeAttribute("class"); |
|
19 } |
|
20 |
|
21 setTimeout(second, 30); |
|
22 } |
|
23 |
|
24 |
|
25 function removeNode(q1) { q1.parentNode.removeChild(q1); } |
|
26 |
|
27 |
|
28 setTimeout(init, 30); |
|
29 |
|
30 |
|
31 ]]></script> |
|
32 |
|
33 <div xmlns='http://www.w3.org/1999/xhtml' id="div1"> |
|
34 |
|
35 <div id="div2">bar</div> |
|
36 </div> |
|
37 |
|
38 </svg> |