1 <html xmlns=
"http://www.w3.org/1999/xhtml" class=
"reftest-wait">
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);
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);
26 document
.documentElement
.removeAttribute("class");
34 <body onload=
"setTimeout(funn, 30)">
35 <div id=
"start1"></div>
36 <div id=
"t">X
<div id=
"q">Y
</div></div>