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.

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

mercurial