mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00: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>
|