Note that we intentionally don't move the SetDisplaySelection stuff to the runnables. It would probably be safe enough, but it's not required and it makes reasoning about this code harder. Differential Revision: https://phabricator.services.mozilla.com/D70183
11 lines
273 B
HTML
11 lines
273 B
HTML
<script>
|
|
function start() {
|
|
document.execCommand('selectAll', false)
|
|
document.documentElement.appendChild(document.getElementById('input'))
|
|
}
|
|
</script>
|
|
<body onload="start()">
|
|
<input id="input" autofocus>
|
|
<canvas contenteditable="true" hidden></canvas>
|
|
</body>
|