layout/reftests/dom/multipleinsertionpoints-insertsingle-2.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>
     4 <bindings xmlns="http://www.mozilla.org/xbl"
     5           xmlns:xhtml="http://www.w3.org/1999/xhtml">
     6   <binding id="a">
     7     <content>
     8       <xhtml:div>
     9         <children includes="span"/>
    10       </xhtml:div>
    11       <xhtml:div>
    12         <children/>
    13       </xhtml:div>
    14     </content>
    15   </binding>  
    16 </bindings>
    18 <script>
    19 function boom()
    20 {
    21   document.body.offsetHeight;
    23   var afterelt = document.getElementById("after");
    24   var parent = afterelt.parentNode;
    26   var newelt = document.createElement("div");
    27   newelt.appendChild(document.createTextNode(4));
    28   parent.insertBefore(newelt, afterelt);
    30   document.body.offsetHeight;
    31   document.documentElement.className = "";
    32 }
    33 </script>
    35 </head>
    36 <body onload="boom();">
    37 <div style="-moz-binding: url(#a);">
    38   <div>3</div><span>1</span><span id="after">2</span><div>5</div>
    39 </div>
    40 </body>
    41 </html>

mercurial