Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix popover initial focus autofocus document targeting #11190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josepharhar
Copy link
Contributor

@josepharhar josepharhar commented Apr 4, 2025

This PR fixes the code which looks for a document to run autofocus attribute processing on to match the dialog element and the initial focus for autofocus on page load. Using browsing context was not a good idea here.

Fixes #11187

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/popover.html ( diff )

This PR fixes the code which looks for a document to run autofocus
attribute processing on to match the dialog element and the initial
focus for autofocus on page load. Using browsing context was not a good
idea here.

Fixes whatwg#11187
@josepharhar
Copy link
Contributor Author

Not sure what to write in the OP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

popover focusing steps and dialog focusing steps are subtly different (probably unintentionally so)
1 participant