editor/reftests/spellcheck-textarea-focused-reframe.html
author Gina Yeh <gyeh@mozilla.com>
Wed, 31 Oct 2012 17:33:50 +0800
changeset 112016 de25c9c57c5385b0c23f226aaa3c6a88bf5b2ff3
parent 95233 af802c58e1cff447e0478a7f6fc6b900cd8f44f8
permissions -rw-r--r--
Bug 806296 - Patch 1(v1): Cannot create an encrypted socket, r=echou

<!DOCTYPE html>
<html>
<body>

  <textarea id="testBox" onfocus="reframe(this);">blahblahblah</textarea>
  <script type="text/javascript">
    function reframe(textbox) {
      textbox.style.display = "none";
      textbox.style.display = "";
      textbox.clientWidth;
    }
    //Adding focus to the textbox should trigger a spellcheck
    document.getElementById("testBox").focus();
    document.getElementById("testBox").blur();
  </script>
  
</body>
</html>