Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 4 | |
michael@0 | 5 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 6 | onload="boom();"> |
michael@0 | 7 | |
michael@0 | 8 | <script type="text/javascript"> |
michael@0 | 9 | |
michael@0 | 10 | function boom() |
michael@0 | 11 | { |
michael@0 | 12 | var c = document.getElementById("c"); |
michael@0 | 13 | var n = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listitem"); |
michael@0 | 14 | n.textContent = "b"; |
michael@0 | 15 | c.parentNode.insertBefore(n, c); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | </script> |
michael@0 | 19 | |
michael@0 | 20 | <listbox id="listbox"> |
michael@0 | 21 | <listitem id="a">a</listitem> |
michael@0 | 22 | <listitem id="c">c</listitem> |
michael@0 | 23 | </listbox> |
michael@0 | 24 | |
michael@0 | 25 | </window> |