Source code

Revision control

Other Tools

Test Info:

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Turning off spellcheck on editable elements via an ancestor</title>
<link rel=match href="references/spelling-markers-001-ref.html">
<meta name=assert content="Spellchecking stops applying to editable elements when the spellcheck attribute becomes false on an ancestor">
<div id="test" contenteditable=true>This test passes if there is no visual marker indicating the <span id=child><span>spellinnnnnggg</span></span> mistake in this sentence, and fails otherwise.</div>
var test = document.getElementById("test");
// Force spellcheck by focus then blur
var child = document.getElementById("child");
child.setAttribute("spellcheck", false);