tor-browser

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

spelling-markers-006.html (891B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 <title>Turning off spellcheck via an ancestor of the editing host</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 when the spellcheck attribute becomes false on an ancestor, without restrcting the search to the nearest editing host">
      8 
      9 <div id=parent>
     10  <div id=test contenteditable=true>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</div>
     11 </div>
     12 
     13 <script>
     14  var test = document.getElementById("test");
     15  // Force spellcheck by focus then blur
     16  test.focus();
     17  test.blur();
     18  var p = document.getElementById("parent");
     19  p.setAttribute("spellcheck", false);
     20 </script>