Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <script>
4 <![CDATA[
6 function funn()
7 {
8 var q = document.getElementById("q");
10 var start1 = document.getElementById("start1");
11 var end1 = document.getElementById("end1");
13 var start2 = q; // div
14 var end2 = q.previousSibling; // text node
16 var r = document.createRange();
17 r.setStart(start1, 0);
18 r.setEnd(end1, 0);
19 r.deleteContents();
21 // the offsets for start2 and end2 must be the same to trigger the assertion
22 var s = document.createRange();
23 s.setStart(start2, 0);
24 s.setEnd(end2, 0);
26 document.documentElement.removeAttribute("class");
27 }
29 ]]>
30 </script>
32 </head>
34 <body onload="setTimeout(funn, 30)">
35 <div id="start1"></div>
36 <div id="t">X<div id="q">Y</div></div>
37 <div id="end1"></div>
38 </body>
40 </html>