|
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
|
2 <head> |
|
3 <script> |
|
4 <![CDATA[ |
|
5 |
|
6 var HTML_NS = "http://www.w3.org/1999/xhtml"; |
|
7 |
|
8 function boom() |
|
9 { |
|
10 var $table = document.getElementById('table'); |
|
11 var $oldtd = document.getElementById('oldtd'); |
|
12 |
|
13 $table.style.outline = "1px solid green"; |
|
14 |
|
15 var $tr = document.createElementNS(HTML_NS, 'tr'); |
|
16 $tr.style.display = "inherit"; |
|
17 $table.insertBefore($tr, $oldtd); |
|
18 |
|
19 var $td = document.createElementNS(HTML_NS, 'td'); |
|
20 $tr.appendChild($td); |
|
21 |
|
22 var $anothertr = document.createElementNS(HTML_NS, 'tr'); |
|
23 $table.insertBefore($anothertr, $tr); |
|
24 |
|
25 document.documentElement.removeAttribute("class"); |
|
26 } |
|
27 |
|
28 ]]> |
|
29 </script> |
|
30 </head> |
|
31 |
|
32 <body onload="setTimeout(boom, 30)"> |
|
33 |
|
34 <table border="1" id="table"> |
|
35 <td id="oldtd"></td> |
|
36 </table> |
|
37 |
|
38 </body> |
|
39 </html> |