blob: 56f7f82a210efa0e1b268496d31cacdc9c03ebb7 (
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
30
31
32
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test for updating the DOM tree while execCommand("undo") is running in the textarea</title>
<script>
"use strict";
let count = 0;
addEventListener("load", () => {
document.execCommand("insertText", false, "F");
document.execCommand("undo");
});
function onInputOfTextarea() {
if (count) {
document.querySelector("base").appendChild(
document.querySelector("content")
);
}
count++;
}
</script>
</head>
<body>
<iframe></iframe>
<textarea autofocus oninput="onInputOfTextarea()">a</textarea>
<base></base>
<content>
<menu>
</body>
</html>
|