blob: 74ae6dcbe3f3d6d70d638a18f3a4c2cc7de4fa57 (
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>
<script type="text/javascript">
function boom()
{
var a = document.documentElement;
var b = document.body;
document.removeChild(a);
b.contentEditable = "true";
document.appendChild(a);
function t() {
document.removeEventListener("DOMAttrModified", t);
document.removeChild(a);
}
document.addEventListener("DOMAttrModified", t);
document.execCommand("insertunorderedlist", false, "<h1>");
document.removeEventListener("DOMAttrModified", t);
}
</script>
</head>
<body onload="boom()"></body>
</html>
|