← Back to release summary

Autofocus support for any focusable HTML/SVG element

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 79)
Intent stage
Evaluate readiness to ship

Summary

Adds the 'autofocus' attribute to any focusable HTML or SVG element.

Motivation

'Autofocus' was previously supported for a limited number of HTML elements, and there were elements which could receive focus but didn't support the 'autofocus' attribute. This feature fixes the inconsistencies.

Standards & signals

View on chromestatus.com