summaryrefslogtreecommitdiffstats
path: root/layout/reftests/selection/dynamic-text-1a.html
blob: 1595b545dc78798bbbe2cd232c812842f36d6050 (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, false);
</script>
</body>
</html>