editor/reftests/spellcheck-contenteditable-focused-reframe.html
author John Dai <jdai@mozilla.com>
Fri, 08 Feb 2019 13:02:08 +0000
changeset 516121 b482c6618d72ac38a9a82fbccf425e0a7f8b6129
parent 146883 67b02bc5a2a179b7772ff722d818e2a94f476246
permissions -rw-r--r--
Bug 1513877 - Implement send and receive methods for base WindowActor class. r=nika Differential Revision: https://phabricator.services.mozilla.com/D18695

<!DOCTYPE html>
<html>
<body>

  <div contenteditable id="testBox" onfocus="reframe(this);">blahblahblah</div>
  <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>