Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <bindings xmlns="http://www.mozilla.org/xbl">
4 <binding id="test">
5 <content>
6 <span><children/></span>
7 </content>
8 </binding>
9 </bindings>
10 <script type="application/x-javascript">
11 function runTest() {
12 var div = document.getElementById("testDiv");
14 // First we have to make sure that we've looked up the primary frame for
15 // the textnode. Appending a space should do the trick.
16 div.firstChild.data += " ";
18 // Now flush our reflow
19 document.body.offsetWidth;
21 var node = document.createElementNS("http://www.w3.org/1999/xhtml",
22 "span");
23 div.appendChild(node);
24 node.appendChild(document.createTextNode("This text should appear"));
25 }
26 </script>
27 </head>
29 <body onload="runTest()">
30 <div id="testDiv" style="width: 0; -moz-binding: url(#test)">This is text in a div</div>
32 </body>
33 </html>