gecko/layout/base/tests/bug1097242-1-ref.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>