summaryrefslogtreecommitdiffstats
path: root/layout/base/crashtests/414175-1.xul
blob: 6d3c3d31f3b7f1c350d1f7fb2305efe00ced3c39 (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
<xul xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">

<script type="text/javascript">

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

  var oldListbox = document.getElementById("oldListbox");
  var listitem = document.getElementById("listitem");
  var newListbox = document.createElementNS(XUL_NS, "listbox");
  var newHbox = document.createElementNS(XUL_NS, "hbox");

  oldListbox.appendChild(newListbox);
  listitem.appendChild(newHbox);

  newListbox.style.display = "inline";
  oldListbox.style.display = "block";
  newHbox.style.display = "inline";
}

</script>

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

</xul>