1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/403962-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.5 + <head> 1.6 + <style> 1.7 + div { color: green; } 1.8 + 1.9 + #test1, #test2 { 1.10 + -moz-binding: url(403962-1xbl.xml#test); 1.11 + } 1.12 + </style> 1.13 + </head> 1.14 + <body onload="runTest()"> 1.15 + <div id="test1"/> 1.16 + <div id="test2"> 1.17 + <!-- Make the script load, so the binding loads first --> 1.18 + <script src="data:text/javascript,document.body.offsetWidth;"/> 1.19 + <!-- The whitespace here is important... or this comment will do 1.20 + the trick too --> 1.21 + <span> test</span> 1.22 + </div> 1.23 + <script> 1.24 + function runTest() { 1.25 + var n = document.getElementById("test1"); 1.26 + n.appendChild(makeSpan()); 1.27 + 1.28 + document.documentElement.className = ""; 1.29 + } 1.30 + 1.31 + function makeSpan() { 1.32 + var s = document.createElementNS("http://www.w3.org/1999/xhtml", 1.33 + "span"); 1.34 + s.appendChild(document.createTextNode(" test")); 1.35 + return s; 1.36 + } 1.37 + </script> 1.38 + </body> 1.39 +</html>