mdn/content

Mention the "command" attribute of buttons

开放

#42,121 创建于 2025年11月25日

 (4 条评论) (0 个反应) (0 位负责人)Markdown (23,229 个派生)batch import
Content:HTMLeffort: mediumhelp wanted

仓库指标

星标
 (10,950 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南