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.

Specification

Specification link


Unknown standards status - check spec link for status

Status in Chromium

Blink>HTML>Focus


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

autofocus, focus,

Last updated on 2021-08-16