tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

spelling-markers-002.html (824B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 <title>Turning off spellcheck on editable elements</title>
      5 <link rel=match href="references/spelling-markers-001-ref.html">
      6 <link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
      7 <meta name=assert content="Spellchecking stops applying to editable elements when they become non editable">
      8 
      9 <div id="test" contenteditable=true>This test passes if there is no visual marker indicating the <span id=child>spellinnnnnggg</span> mistake in this sentence, and fails otherwise.</div>
     10 
     11 <script>
     12  var test = document.getElementById("test");
     13  // Force spellcheck by focus and then blur
     14  test.focus();
     15  test.blur();
     16  var child = document.getElementById("child");
     17  child.setAttribute("contenteditable", false);
     18 </script>