Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <bindings xmlns="http://www.mozilla.org/xbl">
4 <binding id="xbltest">
5 <implementation>
6 <constructor>
7 <![CDATA[
8 var win = XPCNativeWrapper.unwrap(window);
9 win.str += "constructor "
10 win.testFinished();
11 ]]>
12 </constructor>
13 </implementation>
14 </binding>
15 </bindings>
16 </head>
17 <body>
18 <span id="test" style="-moz-binding: url(#xbltest)"></span>
19 <script class="testbody" type="text/javascript">
20 <![CDATA[
21 var testsToFinish = 2;
22 var str = "";
24 function testFinished() {
25 --testsToFinish;
26 if (!testsToFinish) {
27 document.getElementById("test").textContent = str;
28 document.documentElement.className = '';
29 }
30 }
32 window.onload = function() {
33 str += "onload ";
34 testFinished();
35 }
36 ]]>
37 </script>
38 </body>
39 </html>