|
1 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();" class="reftest-wait"> |
|
2 |
|
3 <script type="text/javascript"> |
|
4 |
|
5 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
|
6 |
|
7 function boom() |
|
8 { |
|
9 var A = document.getElementById("A"); |
|
10 var B = document.createElementNS(XUL_NS, "tabs"); |
|
11 var C = document.createElementNS(XUL_NS, "hbox"); |
|
12 B.appendChild(C); |
|
13 A.appendChild(B); |
|
14 } |
|
15 |
|
16 function remove(n) |
|
17 { |
|
18 n.parentNode.removeChild(n); |
|
19 } |
|
20 |
|
21 </script> |
|
22 |
|
23 <hbox id="A" onselect="remove(event.originalTarget); document.documentElement.removeAttribute('class');"></hbox> |
|
24 |
|
25 </window> |