← Back to release summary

Updated dialog initial focus algorithm

Category
DOM
Type
No developer-visible change
Status
Enabled by default (Chrome Enabled by default)
Intent stage
Prepare to ship

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

Summary

Some changes are being made to which element is selected to get focus when a dialog element is opened: 1. Make the dialog focusing steps look at keyboard focusable elements instead of any focusable element. 2. Make the dialog element itself get focus if it has the autofocus attribute set. 3. Make the dialog element itself get focus as a fallback instead of focus being "reset" to the body element.

Standards & signals

Ecosystem

View on chromestatus.com