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

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