Skip to content

Conversation

@harapeko
Copy link
Contributor

@harapeko harapeko commented Jan 4, 2026

Use event.command instead of event.action in the CommandEvent example.

Spec: https://html.spec.whatwg.org/multipage/interaction.html#the-commandevent-interface

Description

Fixes the HTMLElement command event example to check event.command.

Motivation

The example should use CommandEvent.command per the spec; event.action is for NotificationEvent.

Additional details

Spec link above.

Related issues and pull requests

Relates to: mdn/translated-content#31782

Use event.command instead of event.action in the CommandEvent example.

Spec: https://html.spec.whatwg.org/multipage/interaction.html#the-commandevent-interface
@harapeko harapeko requested a review from a team as a code owner January 4, 2026 12:39
@harapeko harapeko requested review from wbamberg and removed request for a team January 4, 2026 12:39
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 4, 2026
@github-actions github-actions bot added the size/xs [PR only] 0-5 LoC changed label Jan 4, 2026
Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

👍 thank you @harapeko !

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

@wbamberg wbamberg merged commit 4819e24 into mdn:main Jan 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants