blob: 3f78f9943621df75c5192df6b604b4402aff89f8 (
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>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
window.find("a");
document.addEventListener("DOMNodeRemoved", () => {
try {
document.getElementById("target").normalize();
document.execCommand("removeFormat");
} catch (e) {
}
});
document.adoptNode(document.querySelector("datalist"));
});
</script>
</head>
<body>
<kbd>
<datalist>
</kbd>
<figcaption contenteditable>
<font id="target">
a
</font>
</figcaption>
</body>
</html>
|