Autofocus support for any focusable HTML/SVG element

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

'Autofocus' has been supported for limited number of HTML elements, and there were elements which could be focusable but didn't support the 'autofocus' attribute. This feature fixes the inconsistencies.

Specification

Editor's draft

Status in Chromium

Blink>HTML>Focus


Enabled by default (tracking bug) in:

  • Chrome for desktop release 79
  • Chrome for Android release 79
  • Android WebView release 79

Consensus & Standardization

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

Owner

Last updated on 2019-09-19