blob: a70d585181f221059fa6a2c4b34e9031e2535927 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<html class="reftest-wait">
<meta charset=utf-8>
<body>
<div id="test" contenteditable>E‮xample</div>
<script>
var elem = document.getElementById("test");
var sel = window.getSelection();
sel.removeAllRanges();
var range = document.createRange();
range.setStart(elem.firstChild, 1);
range.setEnd(elem.firstChild, 2);
sel.addRange(range);
sel.deleteFromDocument();
sel.removeAllRanges();
elem.offsetHeight;
document.documentElement.removeAttribute("class");
</script>
|