mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
407 B
HTML
22 lines
407 B
HTML
|
<html>
|
||
|
<head>
|
||
|
<script>
|
||
|
|
||
|
function boom()
|
||
|
{
|
||
|
var fragEl = document.createElement("span");
|
||
|
fragEl.setAttribute("contenteditable", "true");
|
||
|
fragEl.setAttribute("style", "position: absolute;");
|
||
|
|
||
|
var frag = document.createDocumentFragment();
|
||
|
frag.appendChild(fragEl);
|
||
|
|
||
|
window.getSelection().selectAllChildren(fragEl);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body contenteditable="true" onload="boom();"></body>
|
||
|
</html>
|