Skip to content

Clarify a menuitem's checked event#1330

Open
domfarolino wants to merge 1 commit intomainfrom
clarify-menuitem-checked-event
Open

Clarify a menuitem's checked event#1330
domfarolino wants to merge 1 commit intomainfrom
clarify-menuitem-checked-event

Conversation

@domfarolino
Copy link
Collaborator

@domfarolino domfarolino commented Nov 9, 2025

Closes #1321.

@domfarolino domfarolino marked this pull request as ready for review November 9, 2025 00:53
[HTML Standard's prose on activation](https://html.spec.whatwg.org/C#activation).
* A `checked` event is fired on checkable menu items that have their state changed. This happens
synchronously after their `click` event fires, and after their activation behavior—which
toggles the internal checked state—runs. See
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think itd be a bit nicer to rephrase this sentence like this:
First the click event is fired, then internal checked state changes via the menuitem's activation behavior, then the checked event is fired.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What event should fire on checkable menu items?

2 participants