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.

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

mercurial