layout/reftests/bugs/334829-1a.xhtml

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3   <bindings xmlns="http://www.mozilla.org/xbl">
     4     <binding id="test">
     5       <content>
     6         <span><children/></span>
     7       </content>
     8     </binding>
     9   </bindings>
    10   <script type="application/x-javascript">
    11     function runTest() {
    12       var div = document.getElementById("testDiv");
    14       // First we have to make sure that we've looked up the primary frame for
    15       // the textnode.  Appending a space should do the trick.
    16       div.firstChild.data += " ";
    18       // Now flush our reflow
    19       document.body.offsetWidth;
    21       var node = document.createElementNS("http://www.w3.org/1999/xhtml",
    22                                           "span");
    23       div.appendChild(node);
    24       node.appendChild(document.createTextNode("This text should appear"));
    25     }
    26   </script>
    27 </head>
    29 <body onload="runTest()">
    30 <div id="testDiv" style="width: 0; -moz-binding: url(#test)">This is text in a div</div>
    32 </body>
    33 </html>

mercurial