Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
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 previous child span. Appending text to it should do the trick.
16 div.firstChild.
17 appendChild(document.createTextNode("This is text in a div "));
19 // Now flush out reflow
20 document.body.offsetWidth;
22 var node = document.createElementNS("http://www.w3.org/1999/xhtml",
23 "span");
24 div.appendChild(node);
25 node.appendChild(document.createTextNode("This text should appear"));
26 }
27 </script>
28 </head>
30 <body onload="runTest()">
31 <div id="testDiv" style="width: 0; -moz-binding: url(#test)"><span></span></div>
33 </body>
34 </html>