mdn/content

Mention the "command" attribute of buttons

Open

#42 121 ouverte le 25 nov. 2025

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Markdown (22 427 forks)batch import
Content:HTMLeffort: mediumhelp wanted

Métriques du dépôt

Stars
 (8 900 stars)
Métriques de merge PR
 (Merge moyen 7j 3h) (147 PRs mergées en 30 j)

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

Guide contributeur