layout/reftests/dom/multipleappendwitheditable.xhtml

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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   newelt = document.createElement("div");
    20   newelt.appendChild(document.createTextNode(5));
    21   newelt.setAttribute("contenteditable", "true");
    22   parent.appendChild(newelt);
    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