summaryrefslogtreecommitdiffstats
path: root/editor/reftests/caret_on_textarea_lastline.html
blob: 24a53bd7d4a5c5d565454f35c8561657d7107472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<body onload="loaded()">
<script>
  function loaded() {
    var t = document.querySelector('textarea');
    t.selectionStart = t.selectionEnd = t.value.length;
    t.focus();
  }
</script>
<textarea>foo
</textarea>
</body>
</html>