summaryrefslogtreecommitdiffstats
path: root/layout/xul/grid/crashtests/400790-1.xul
blob: 4de709428644e5b7bb6985e89fc82670fffd15f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<xul xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">

<script>

function boom()
{
  var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

  var newListbox = document.createElementNS(XUL_NS, "listbox");
  document.getElementById("listbox").appendChild(newListbox);

  var newHbox = document.createElementNS(XUL_NS, "hbox");
  document.getElementById("listitem").appendChild(newHbox);
}

</script>

<listbox id="listbox"><listitem id="listitem" /></listbox>

</xul>