Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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> 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(" test"));
32 return s;
33 }
34 </script>
35 </body>
36 </html>