testing/web-platform/tests/html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-004.html
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Thu, 19 May 2022 06:57:01 +0000
changeset 618144 e602ffeedb64dca5837700381558bdc070f4a7b3
parent 379529 20ca9381933394f96a736f5fd214b3c3b3efbdcb
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD el -> edacbc72f9c702472e006c7229d01e89ac68a0a0 es-AR -> ca52c046fef480523988cdf8b2c316b4084b496c he -> e7c0b94abeb7ee044af286e4ebd622ada0804c2e hye -> fb27399463e03658d760751802e4c655e9a1f787 ia -> 63dea35c49da07c0d7f3ab2f77e2e0682868a737 ka -> 0f521d52f508aa416fda2178642ef9ce0b3bc417 nb-NO -> a453d24c602fd86656e5c1488dff8ab24ac31765 nl -> 77e9f18a051887619223c2f41af62f91a8ce8a86 oc -> 106f94e19e078d7449c9191176eab1c2d99174f4 pt-BR -> affa7ab77d516392d7a5d41d4cd75c19db2ba65c rm -> f8ebda3f7a4c0aa71b312e4b28f14c8ca08c5fca tg -> 2d54aae5a06ed5c4e12bbd18fd54b78b5d5ae1b6

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Turning off spellcheck on editable elements while keeping them editable</title>
<link rel=match href="references/spelling-markers-001-ref.html">
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
<meta name=assert content="Spellchecking stops applying to editable elements when the spellcheck attribute becomes false">

<div id="test" spellcheck=true 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>

<script>
  var test = document.getElementById("test");
  // Force spellcheck by focus then blur
  test.focus();
  test.blur();
  var child = document.getElementById("child");
  child.setAttribute("spellcheck", false);
</script>