coderef

spellcheckBaseline · Widely available

The spellcheck global HTML attribute sets whether the browser may check an element for spelling errors.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Nov 28, 2017. Widely available since May 28, 2020.

Browser support

DesktopChrome
1–8Not supported
9+Supportedsince Feb 3, 2011
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–1.5Not supported
2+Supportedsince Oct 24, 2006
Current: 157
Safari
1–5Not supported
5.1+Supportedsince Jul 20, 2011
Current: 27
MobileChrome Android
18–46Not supported
47+Supportedsince Dec 2, 2015
Current: 155
Firefox Android
4–56Not supported
57+Supportedsince Nov 28, 2017
Current: 157
Safari iOS
1–4.2Not supported
5+Supportedsince Oct 12, 2011
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: spellcheck.

Feature detection

JS · check before using
if ("HTMLElement" in globalThis && "spellcheck" in HTMLElement.prototype) {
  // HTMLElement.spellcheck is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
HTMLElement.spellcheck91225.11845
spellcheck91225.147575