layout/base/tests/bug612271-ref.html
author Ehsan Akhgari <ehsan@mozilla.com>
Thu, 12 May 2011 09:52:38 -0400
changeset 69392 7af9641c195dc88c8b96b0423425f41deca695be
parent 61554 0fc69d3548fde1839bfe6e558f3d92b0f610500c
permissions -rw-r--r--
Bug 612129 - Set the initial selection range to the beginning of the text field in order to be more compatible with other browsers; r=roc

<!DOCTYPE HTML><html><head>
  <script type="text/javascript" src="/MochiKit/packed.js"></script>
  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  <script type="text/javascript">
    function loaded() {
      var t = document.querySelector("textarea");
      t.focus();
      t.selectionStart = t.selectionEnd = 4;
    }
  </script>
</head>
<body onload="loaded()">
  <textarea style="height: 200px; display: block;"
    >foo
</textarea>
  4 - 4
</body>
</html>