layout/reftests/bugs/373533-3.xhtml

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial