|
1 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"><script><![CDATA[ |
|
2 |
|
3 function init() { |
|
4 var docElt = document.documentElement; |
|
5 var div1 = document.getElementById("div1"); |
|
6 var div2 = document.getElementById("div2"); |
|
7 var textNode = div2.childNodes[0]; |
|
8 |
|
9 function first() |
|
10 { |
|
11 docElt.appendChild(div2); |
|
12 div2.appendChild(div1); |
|
13 } |
|
14 |
|
15 function second() |
|
16 { |
|
17 div2.appendChild(div1); |
|
18 div1.appendChild(textNode); |
|
19 document.documentElement.removeAttribute("class"); |
|
20 } |
|
21 |
|
22 first(); |
|
23 setTimeout(second, 30); |
|
24 } |
|
25 |
|
26 window.addEventListener("load", init, false); |
|
27 |
|
28 ]]></script><div xmlns="http://www.w3.org/1999/xhtml" id="div1"><div id="div2">A Z</div></div></svg> |