summaryrefslogtreecommitdiffstats
path: root/editor/reftests/spellcheck-textarea-focused-reframe.html
blob: 6e6f871dda3d1c64ddbbcda820ff19c0f4cbfa9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!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>