From e628022038e755c2a36d4af53130133ccb450c82 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 15 Feb 2023 19:34:02 -0800 Subject: [PATCH] Use ToggleEvent for
element toggle event --- source | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/source b/source index ddd1e606983..63790408917 100644 --- a/source +++ b/source @@ -58902,8 +58902,19 @@ interface HTMLDetailsElement : HTMLElement { fired.

-
  • Fire an event named toggle at the details element.

  • +
  • If the open attribute is added, fire an event named toggle + using ToggleEvent, with the oldState + attribute initialized to "closed", and the newState attribute initialized to "open" at the details element.

  • + +
  • Otherwise, fire an event named toggle using ToggleEvent, with the oldState attribute initialized to "open", and the newState + attribute initialized to "closed" at the details + element.

  • The open @@ -132164,7 +132175,7 @@ INSERT INTERFACES HERE toggle - Event or ToggleEvent + ToggleEvent details and popover elements Fired at details elements when they open or close; fired on elements with the popover attribute when they are transitioning between