Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 class="reftest-wait">
7 <hbox style="display: none">
8 <bindings id="testBindings" xmlns="http://www.mozilla.org/xbl"
9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
11 <binding id="testBinding" >
12 <content>
13 <xul:label value="anon label"/>
14 <children/>
15 </content>
16 </binding>
17 </bindings>
18 </hbox>
19 <script>
20 <![CDATA[
21 var cont;
23 window.onload = function() {
24 const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
25 cont = document.getElementById("container");
27 for(var i=0; i<2; i++) {
28 var item = document.createElementNS(XUL_NS, "button");
29 cont.appendChild(item);
30 item.label = i;
31 }
33 document.documentElement.getBoundingClientRect();
35 var item = cont.firstChild;
36 //alert(item.label);
37 cont.insertBefore(item.nextSibling, item);
38 document.documentElement.removeAttribute("class");
39 }
40 ]]>
41 </script>
43 <hbox id="container" style="-moz-binding: url('#testBinding');"/>
45 </window>