no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / selection / invalidation-1d.html
blobd9cfa97f1249fe33bab2cb60bf14aa59b084deff
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <body>
5 <p id="first">f<span>o</span>o</p>
6 <p id="second">bar</p>
7 <script>
8 document.body.offsetTop;
9 var p1 = document.getElementById("first");
10 var p2 = document.getElementById("second");
11 var selection = window.getSelection();
12 selection.setBaseAndExtent(p1.firstChild, 0, p1.childNodes.item(1).firstChild, 1);
14 function doTest() {
15 selection.extend(p2.firstChild, 2);
16 document.documentElement.removeAttribute('class');
18 document.addEventListener("MozReftestInvalidate", doTest);
19 </script>
20 </body>
21 </html>