← 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

WPT details: https://github.com/web-platform-tests/wpt/pull/18558

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

Ecosystem

View on chromestatus.com