coderef

autocorrectBaseline · Newly available

The autocorrect global HTML attribute controls whether to automatically correct spelling or punctuation errors for user input.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Sep 11, 2026.

Browser support

DesktopChrome
1–152Not supported
153+Supportedsince Sep 8, 2026
Current: 155
Edge
12–152Not supported
153+Supportedsince Sep 11, 2026
Current: 154
Firefox
1–135Not supported
136+Supportedsince Mar 4, 2025
Current: 157
Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27
MobileChrome Android
18–152Not supported
153+Supportedsince Sep 8, 2026
Current: 155
Firefox Android
4–135Not supported
136+Supportedsince Mar 4, 2025
Current: 157
Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Sep 11, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN: autocorrect.

Feature detection

JS · check before using
if ("HTMLElement" in globalThis && "autocorrect" in HTMLElement.prototype) {
  // HTMLElement.autocorrect 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.autocorrect15315313614.115313614.5
autocorrect15315313614.115313614.5