Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

details elements use the ToggleEvent #22186

Closed
Fykec opened this issue Jul 6, 2024 · 0 comments · Fixed by #22190
Closed

details elements use the ToggleEvent #22186

Fykec opened this issue Jul 6, 2024 · 0 comments · Fixed by #22190
Labels
l10n-zh Issues related to Chinese content.

Comments

@Fykec
Copy link

Fykec commented Jul 6, 2024

MDN URL

https://developer.mozilla.org/zh-CN/docs/Web/API/ToggleEvent

与此议题相关的小节或标题?

No response

哪些信息是错误、无用或不完善的?

备注: ToggleEventHTMLDetailsElement 的 {{domxref("HTMLDetailsElement.toggle_event", "toggle")}} 事件无关,后者在 {{htmlelement("details")}} 元素的 open/closed 状态被切换时触发。其事件对象是一个通用的 {{domxref("Event")}}。

你期望看到什么?

备注:HTMLDetailsElement 的 {{domxref("HTMLDetailsElement.toggle_event", "toggle")}} 事件目前也使用ToggleEvent

你有什么支持的链接、参考或引用?

you can use this test link, you click on the details' toggle, you will find the toggle's event also has newState and oldState, the Prototype is ToggleEvent

你还想补充什么内容?

Fire an event named toggle at element, using ToggleEvent, with the oldState attribute initialized to oldState and the newState attribute initialized to newState.

check details spec

MDN metadata

Page report details
@Fykec Fykec added l10n-zh Issues related to Chinese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 6, 2024
@yin1999 yin1999 removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
3 participants
@Fykec @yin1999 and others