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"
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" >
13 <xul:label value=
"anon label"/>
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);
33 document.documentElement.getBoundingClientRect();
35 var item = cont.firstChild;
37 cont.insertBefore(item.nextSibling, item);
38 document.documentElement.removeAttribute(
"class");
43 <hbox id=
"container" style=
"-moz-binding: url('#testBinding');"/>