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 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
3 xmlns:math="http://www.w3.org/1998/Math/MathML">
4 <head></head>
5 <body>
7 <xul:box collapsed="true"><math:mrow><div id="div">
8 <p id="para">Foo bar</p>
9 </div></math:mrow></xul:box>
11 <script type="application/javascript">
12 document.body.offsetWidth;
14 try
15 {
16 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
18 var para = document.getElementById("para");
19 var div = document.getElementById("div");
20 var hbox = document.createElementNS(XUL_NS, 'hbox');
22 div.appendChild(hbox);
23 div.removeChild(para);
24 }
25 catch (e)
26 {
27 document.body.appendChild(document.createTextNode(e));
28 }
29 </script>
31 </body>
32 </html>