-1:000000000000 | 0:149523c54788 |
---|---|
1 <html> | |
2 <head> | |
3 <script> | |
4 | |
5 function boom() | |
6 { | |
7 var fragEl = document.createElement("span"); | |
8 fragEl.setAttribute("contenteditable", "true"); | |
9 fragEl.setAttribute("style", "position: absolute;"); | |
10 | |
11 var frag = document.createDocumentFragment(); | |
12 frag.appendChild(fragEl); | |
13 | |
14 window.getSelection().selectAllChildren(fragEl); | |
15 } | |
16 | |
17 </script> | |
18 </head> | |
19 | |
20 <body contenteditable="true" onload="boom();"></body> | |
21 </html> |