summaryrefslogtreecommitdiff
path: root/layout/reftests/bugs/486848-1.xul
blob: ec9f1d0e13d5459160555f9eeafbfd8b1dbecf30 (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
<?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"
	onload="boom();">

<script type="text/javascript">

function boom()
{
  var c = document.getElementById("c");
  var n = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listitem");
  n.textContent = "b";
  c.parentNode.insertBefore(n, c);
}

</script>

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

</window>