mdn/content

Mention the "command" attribute of buttons

Open

#42,121 opened on Nov 25, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Markdown (22,427 forks)batch import
Content:HTMLeffort: mediumhelp wanted

Repository metrics

Stars
 (8,900 stars)
PR merge metrics
 (Avg merge 7d 3h) (147 merged PRs in 30d)

Description

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Regarding the dialog element, a very important detail is NOT mentioned at all, which is that now you can use the command attribute on buttons instead of manually adding event listeners.

What did you expect to see?

At least a mention of this new method among the others. A new example (or an existing example updated to use it) would be great.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Contributor guide