blob: 55a43aafd0708a2ddcfc4143951c0b1b033eb80e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<!doctype html>
<title>Test reference</title>
<p>
Some selected text
</p>
<script>
getSelection().removeAllRanges();
let r = document.createRange();
r.selectNode(document.documentElement);
getSelection().addRange(r);
</script>
|