https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 99f6c7aff4efb16cba51b9c84fe4348dec8a2be5 authored by seabld on 05 September 2014, 04:56:57 UTC
Added tag SEAMONKEY_2_29_RELEASE for changeset FIREFOX_32_0_BUILD1. CLOSED TREE a=release
Tip revision: 99f6c7a
bug612271-3.html
<!DOCTYPE HTML><html><head>
  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body>
  <textarea id="target" style="height: 100px; -moz-appearance: none" spellcheck="false"
    onkeyup="this.style.display='block';this.style.height='200px';">foo</textarea>
<script>
  var t = document.querySelector("textarea");
  t.focus();
  t.selectionStart = t.selectionEnd = t.value.length;
  sendKey('RETURN');
  document.body.appendChild(document.createTextNode(t.selectionStart + " - " + t.selectionEnd));
</script>
</body>
</html>
back to top