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

mercurial