diff options
Diffstat (limited to 'layout/reftests/bugs/486848-1.xul')
-rw-r--r-- | layout/reftests/bugs/486848-1.xul | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/layout/reftests/bugs/486848-1.xul b/layout/reftests/bugs/486848-1.xul new file mode 100644 index 000000000..ec9f1d0e1 --- /dev/null +++ b/layout/reftests/bugs/486848-1.xul @@ -0,0 +1,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> |