Skip to content

Conversation

josepharhar
Copy link
Contributor

@josepharhar josepharhar commented Mar 25, 2025

The focus navigation scope owner was erroneously set to the popover itself for popovers, when it should be the popover's invoker element.

Fixes #11159

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


/interaction.html ( diff )

The focus navigation scope owner was erroneously set to the popover
itself for popovers, when it should be the popover's invoker element.

Fixes whatwg#11159
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editorially LGTM. Perhaps @EdgarChen can review too?

Please fill out the template for bug fixes like this too. Most of the entries can be N/A or already implemented, but it helps us as editors understand the status of the PR better.

@domenic domenic added the topic: popover The popover attribute and friends label Mar 26, 2025
Copy link
Member

@EdgarChen EdgarChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@josepharhar
Copy link
Contributor Author

Thanks, I filled out the OP

@domenic domenic merged commit a1f4382 into whatwg:main Mar 27, 2025
2 checks passed
@nt1m
Copy link
Member

nt1m commented Mar 28, 2025

WebKit (already implemented)

This is not what WebKit implements. WebKit follows the "broken" spec since WebKit/WebKit@6e3d19b .

In principle, changing it to follow this PR shouldn't be hard and without behavior changes but it's an unnecessary effort that can cause regressions though.

@nt1m
Copy link
Member

nt1m commented Mar 28, 2025

(In case you're wondering how WebKit passes the focus tests, there are a few hacks there and there to make it work with the invokers, but I found that the choice of scope owner doesn't really reduce the number of hacks, it just moves them to different places)

@josepharhar
Copy link
Contributor Author

Thanks for the clarification! Do you think that making the invoker a focus scope owner is bad and should be changed? If so, do you have an example to highlight it?

@nt1m
Copy link
Member

nt1m commented Apr 1, 2025

Thanks for the clarification! Do you think that making the invoker a focus scope owner is bad and should be changed? If so, do you have an example to highlight it?

There's honestly no difference for developers, it's more a matter of choice regarding how code is organized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: popover The popover attribute and friends
Development

Successfully merging this pull request may close these issues.

Clarify the focus navigation scope owner of popover element
4 participants