layout/reftests/dom/multipleappendwithxul.xhtml

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     2 <head>
     3 <script type="text/javascript">
     5 function boom()
     6 {
     7   document.body.offsetHeight;
     9   var parent = document.getElementById("parent");
    11   var newelt = document.createElement("div");
    12   newelt.appendChild(document.createTextNode(3));
    13   parent.appendChild(newelt);
    15   newelt = document.createElement("div");
    16   newelt.appendChild(document.createTextNode(4));
    17   parent.appendChild(newelt);
    19   var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    20   var hbox = document.createElementNS(XUL_NS, "hbox");
    21   hbox.appendChild(document.createTextNode(5));
    22   parent.appendChild(hbox);
    24   document.body.offsetHeight;
    25   document.documentElement.className = "";
    26 }
    28 </script>
    29 </head>
    31 <body onload="boom();">
    32 <div id="parent">
    33   <div>1</div>
    34   <div>2</div>
    35 </div>
    36 </body>
    37 </html>

mercurial