Bug 461810 - Video content menu should operate on .currentSrc, not .src. r=gavin
[wine-gecko.git] / content / base / crashtests / 336715-1.xhtml
blobad9d1430ad7632e32c2f0b7e04b5cf4856dd74b1
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <script>
4 <![CDATA[
6 function funn()
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");
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>