summaryrefslogtreecommitdiffstats
path: root/layout/reftests/selection/dynamic-text-1a.html
blob: 30e56ad3bcbac2aab9da0471f5b7587b8ca457b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<body style="white-space:pre"> 00 
 BC 
 FG 
 JK 
<script>
document.body.offsetTop;
var t = document.body.firstChild;
var sel = window.getSelection();
sel.collapse(t, 11);
sel.extend(t, 13);

function doTest() {
  t.replaceData(0, 5, '');
  document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>