layout/reftests/bugs/372323-1.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" class="reftest-wait">
     2   <head>
     3     <style>
     4       div { color: green; }
     5     </style>
     6   </head>
     7   <body onload="runTest()">
     8     <div id="test1" style="-moz-binding: url(372323-1xbl.xml#test);"/>
     9     <div id="test2" style="-moz-binding: url(372323-1xbl.xml#test);">
    10       <!-- Make the script load, so the binding loads first -->
    11       <script src="data:text/javascript,document.body.offsetWidth;"/>
    12       <!-- The whitespace here is important... or this comment will do
    13            the trick too -->
    14       <span>test</span>
    15     </div>
    16     <script>
    17       function runTest() {
    18         var n = document.getElementById("test1");
    19         n.appendChild(makeSpan());
    21         document.documentElement.className = "";
    22       }
    24       function makeSpan() {
    25         var s = document.createElementNS("http://www.w3.org/1999/xhtml",
    26                                          "span");
    27         s.appendChild(document.createTextNode("test"));
    28         return s;
    29       }      
    30     </script>
    31   </body>
    32 </html>

mercurial