summaryrefslogtreecommitdiffstats
path: root/editor/reftests/674212-spellcheck.html
blob: 7477cfc4b3a4c9bfba78f5ca37f39baf4b1d9769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en-US" class="reftest-wait">
<head>
  <script type="text/javascript">
    function init() {
      var editor = document.querySelector("div[contenteditable]");
      editor.addEventListener("focus", function() {
        editor.textContent = "This is another misspellored word.";
        setTimeout(function() {
          document.documentElement.className = "";
        }, 0);
      });
      editor.focus();
    }
  </script>
</head>
<body onload="init()">
  <div contenteditable spellcheck>This is a misspellored word.</div>
</body>
</html>