mdn/content

Mention the "command" attribute of buttons

Open

#42.121 aperta il 25 nov 2025

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Markdown (22.427 fork)batch import
Content:HTMLeffort: mediumhelp wanted

Metriche repository

Star
 (8900 star)
Metriche merge PR
 (Merge medio 7g 3h) (147 PR mergiate in 30 g)

Descrizione

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

Guida contributor