summaryrefslogtreecommitdiffstats
path: root/dom/xbl/crashtests/406900-1.xul
blob: 3b3dc1f87040d9682fea8034824521d94e071e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="boom();">

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="lit">
    <content>
      <children>
        <xul:hbox/>
      </children>
    </content>
  </binding>
</bindings>

<script type="text/javascript"> 

function boom()
{
  var x = document.getElementById("x");
  var anon = document.getAnonymousNodes(x)[0];
  document.documentElement.removeChild(x);
  document.documentElement.appendChild(x);
  var hbox = document.createElement('hbox');
  anon.appendChild(hbox);
}

</script>

<hbox id="x" style="-moz-binding: url(#lit)" />

</window>