blob: 815a819c3367b7441be40b2294c9a2998bfcb632 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!doctype html>
<html class="test-wait">
<head>
<meta charset="utf-8">
<script>
"use strict";
addEventListener("load", () => {
let i = 0;
const details = document.querySelector("details");
const id = setInterval(() => {
getSelection().modify("move", "forward", "lineboundary");
if (details.isConnected) {
details.outerHTML = undefined;
}
if (++i == 5) {
document.documentElement.removeAttribute("class");
clearInterval(id);
}
}, 0);
document.execCommand("selectAll");
}, {once: true});
</script>
</head>
<body>
<details>a</details>
<span contenteditable></span>
</body>
</html>
|