blob: fd3af85db2bbb6ace92fa8a6aac6220f87297778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<script>
function go() {
a.appendChild(c)
a.getRootNode().addEventListener("DOMSubtreeModified", eh, { once: true })
b.setAttribute("oninvalid", "eh()")
}
function eh() {
b.setAttribute("role", "dialog")
window.scrollBy(0.802, 0.384)
var x = document.getSelection()
x.extend(a)
x.modify("move", "forward", "lineboundary")
a.style.setProperty("column-span", "all")
}
</script>
<body onload=go()>
<select>
<option id="a" contenteditable="true">x</span>
<input id="b">
<textarea id="c">
|