mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
343 B
HTML
15 lines
343 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<script>
|
|
function test() {
|
|
focus();
|
|
var div = document.querySelector("div");
|
|
div.focus();
|
|
getSelection().collapse(div.firstChild, 0);
|
|
}
|
|
</script>
|
|
<body onload="test()">
|
|
<div contenteditable spellcheck="false" style="outline: none">foo<span>bar</span>baz</div>
|
|
</body>
|
|
</html>
|