dom/xbl/crashtests/406900-1.xul
author Robert O'Callahan <robert@ocallahan.org>
Fri, 10 Jan 2014 16:03:25 +1300
changeset 180086 243259fda9aba5900ae1492c991a0e7a541a584d
parent 11201 content/xbl/crashtests/406900-1.xul@b4b0d7c62720ccbad885a739ff7235ddc20b8876
child 537402 8b074e2a3b68a339928e5b9f1d52f712e4bfce44
permissions -rw-r--r--
Bug 946065. Part 4: Move content/xbl to dom/ and flatten away 'src' directory. r=Ms2ger

<?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>