editor/reftests/spellcheck-textarea-focused-notreadonly.html
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 07 Nov 2013 10:37:44 +0900
changeset 167450 6e80754f7257de8f875e8f490b57c6d66276936c
parent 115310 0d3c93bc571693d24de2e9af2f92fd2e6fb8001c
permissions -rw-r--r--
Bug 921816 - Handle idls in --with-libxul-sdk builds. r=gps, a=lsblakk

<!DOCTYPE html>
<html>
<body>

  <textarea id="testBox" style="padding:2px;" readonly></textarea>
  <script type="text/javascript">
    //Adding focus to the textbox should trigger a spellcheck
    var textbox = document.getElementById("testBox");
    addEventListener("load", function() {
      textbox.readOnly = false;
      textbox.focus();
      textbox.value = "blahblahblah";
      textbox.selectionStart = textbox.selectionEnd = 0;
      textbox.blur();
    }, false);
  </script>

</body>
</html>