зеркало из https://github.com/mozilla/gecko-dev.git
22 строки
407 B
HTML
22 строки
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>
|