Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <xul xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();"> |
michael@0 | 2 | |
michael@0 | 3 | <script type="text/javascript"> |
michael@0 | 4 | |
michael@0 | 5 | function boom() |
michael@0 | 6 | { |
michael@0 | 7 | var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
michael@0 | 8 | |
michael@0 | 9 | var oldListbox = document.getElementById("oldListbox"); |
michael@0 | 10 | var listitem = document.getElementById("listitem"); |
michael@0 | 11 | var newListbox = document.createElementNS(XUL_NS, "listbox"); |
michael@0 | 12 | var newHbox = document.createElementNS(XUL_NS, "hbox"); |
michael@0 | 13 | |
michael@0 | 14 | oldListbox.appendChild(newListbox); |
michael@0 | 15 | listitem.appendChild(newHbox); |
michael@0 | 16 | |
michael@0 | 17 | newListbox.style.display = "inline"; |
michael@0 | 18 | oldListbox.style.display = "block"; |
michael@0 | 19 | newHbox.style.display = "inline"; |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | </script> |
michael@0 | 23 | |
michael@0 | 24 | <listbox id="oldListbox"><listitem id="listitem" /></listbox> |
michael@0 | 25 | |
michael@0 | 26 | </xul> |