From d88b1216cc82934d849900478fe02be8eb490ea8 Mon Sep 17 00:00:00 2001
From: Tim Nguyen
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
@@ -137980,7 +137991,7 @@ INSERT INTERFACES HERE
toggle
- Event
or ToggleEvent
+ ToggleEvent
details
and popover elements
details
elements when they open or close; fired on elements with the
popover
attribute when they are transitioning between
From 752b8d1e557dfffe785b9c768d9c4d9eb1810f3b Mon Sep 17 00:00:00 2001
From: "Michael[tm] Smith" Every details
element has a details toggle task, initially null, which
+ is either null or a struct which has:
ToggleEvent
.oldState
attribute.Whenever the open
attribute is added to or removed from
- a details
element, the user agent must queue an element task on the
- DOM manipulation task source given then details
element that runs the
- following steps, which are known as the details notification task steps, for this
- details
element:
details
element, the user agent must run the following steps, which are known as
+ the details notification task steps, for this details
element:
+
+ When the open
attribute is toggled several
+ times in succession, the resulting tasks essentially get coalesced so that only one event is
+ fired.
If the open
attribute is added, queue a
+ details toggle event task given the details
element, "closed
", and "open
".
Otherwise, queue a details toggle event task given the details
+ element, "open
", and "closed
".
To queue a details toggle event task given a details
element
+ element, a string oldState, and a string newState:
If another task has been queued to run the details notification task steps for this
- details
element, then return.
If element's details toggle task is not null, then:
-When the open
attribute is toggled
- several times in succession, these steps essentially get coalesced so that only one event is
- fired.
Set oldState to element's details toggle task's + old state.
Remove element's details toggle task's task from its task queue.
Set element's details toggle task to null.
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.
Queue an element task given the DOM manipulation task source and + element to run the following steps:
-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.
fire an event named toggle
, using ToggleEvent
, with the oldState
attribute initialized to oldState,
+ and the newState
attribute initialized to
+ newState at element.
Set element's details toggle task to null.
Set element's details toggle task to a struct with task set to the just-queued task and old + state set to oldState.
The open
From 4e90fc4ed312ab47953a66ed000482016a8e0c1d Mon Sep 17 00:00:00 2001
From: "Michael[tm] Smith"
ToggleEvent
.ToggleEvent
.oldState
attribute.fire an event named toggle
, using ToggleEvent
, with the oldState
attribute initialized to oldState,
- and the newState
attribute initialized to
- newState at element.
Fire an event named toggle
at element, using ToggleEvent
, with
+ the oldState
attribute initialized to
+ oldState, and the newState
attribute
+ initialized to newState.
Set element's details toggle task to null.
ToggleEvent
.ToggleEvent
.oldState
attribute.fire an event named toggle
, using ToggleEvent
, with the oldState
attribute initialized to oldState,
- and the newState
attribute initialized to
- newState at element.
Fire an event named toggle
at element, using ToggleEvent
, with
+ the oldState
attribute initialized to
+ oldState, and the newState
attribute
+ initialized to newState.
Set element's popover toggle task to null.
Fire an event named toggle
at element, using ToggleEvent
, with
the oldState
attribute initialized to
- oldState, and the newState
attribute
+ oldState and the newState
attribute
initialized to newState.
Set element's details toggle task to null.
Fire an event named toggle
at element, using ToggleEvent
, with
the oldState
attribute initialized to
- oldState, and the newState
attribute
+ oldState and the newState
attribute
initialized to newState.
Set element's popover toggle task to null.
Fire an event named beforetoggle
, using ToggleEvent
, with the oldState
attribute initialized to "open
", and the newState
+ data-x="">open" and the newState
attribute initialized to "closed
" at element.
ToggleEvent
interface[Exposed=Window]
+interface ToggleEvent : Event {
+ constructor(DOMString type, optional ToggleEventInit eventInitDict = {});
+ readonly attribute DOMString oldState;
+ readonly attribute DOMString newState;
+};
+
+dictionary ToggleEventInit : EventInit {
+ DOMString oldState = "";
+ DOMString newState = "";
+};
+
+ event.oldState
Set to "closed
" when transitioning from closed to open, or set to
+ "open
" when transitioning from open to closed.
event.newState
Set to "open
" when transitioning from closed to open, or set to "closed
" when transitioning from open to closed.
The oldState
attribute must return the value it
+ was initialized to. It is initialized to "open
" if the element with the
+ popover
attribute's popover visibility state is
+ showing; otherwise "closed
".
The newState
attribute must return the value it was
+ initialized to. It is initialized to "closed
" if the element with the popover
attribute's popover visibility state is showing; otherwise "open
".
A toggle task tracker is either null or a struct which has:
+ +ToggleEvent
.oldState
attribute.The oldState
attribute must return the value it
- was initialized to. It is initialized to "open
" if the element with the
- popover
attribute's popover visibility state is
- showing; otherwise "closed
".
The newState
attribute must return the value it was
- initialized to. It is initialized to "closed
" if the element with the popover
attribute's popover visibility state is showing; otherwise "open
".
newState
attributes must return the values they are
+ initialized to.
A toggle task tracker is either null or a struct which has:
From 55c6d83c2a80acf912ea681a3595b393b0fb277f Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith"Every details
element has a details toggle task, initially null, which
- is either null or a struct which has:
ToggleEvent
.oldState
attribute.Every details
element has a toggle task tracker, initially null.
Whenever the open
attribute is added to or removed from
a details
element, the user agent must run the following steps, which are known as
@@ -59823,16 +59813,16 @@ interface HTMLDetailsElement : HTMLElement {
If element's details toggle task is not null, then:
+If element's toggle task tracker is not null, then:
Set oldState to element's details toggle task's - old state.
Set oldState to element's toggle task tracker's + old state.
Remove element's details toggle task's task from its task queue.
Remove element's toggle task tracker's task from its task queue.
Set element's details toggle task to null.
Set element's toggle task tracker to null.
newState
attribute
initialized to newState.Set element's details toggle task to null.
Set element's toggle task tracker to null.
Set element's details toggle task to a struct with task set to the just-queued task and old - state set to oldState.
Set element's toggle task tracker to a struct with task set to the just-queued task and old state set + to oldState.
The open
@@ -82695,17 +82685,8 @@ dictionary DragEventInit : MouseEventInit {
Every HTML element has a popover showing or hiding, which is a boolean, initially set to false.
-Every HTML element has a popover toggle task, - initially null, which is either null or a struct which has:
- -ToggleEvent
.oldState
attribute.Every HTML element has a toggle task tracker, + initially null.
The following attribute change steps, given element, localName, oldValue, @@ -82871,16 +82852,16 @@ dictionary DragEventInit : MouseEventInit {
If element's popover toggle task is not null, then:
+If element's toggle task tracker is not null, then:
Set oldState to element's popover toggle task's - old state.
Set oldState to element's toggle task tracker's + old state.
Remove element's popover toggle task's task from its task queue.
Remove element's toggle task tracker's task from its task queue.
Set element's popover toggle task to null.
Set element's toggle task tracker to null.
newState
attribute
initialized to newState.
- Set element's popover toggle task to null.
Set element's toggle task tracker to null.
Set element's popover toggle task to a struct with task set to the just-queued task and old - state set to oldState.
Set element's toggle task tracker to a struct with task set to the just-queued task and old state set + to oldState.
The hidePopover()
@@ -83672,6 +83653,16 @@ dictionary ToggleEventInit : EventInit {
data-x="attr-popover">popover attribute's popover visibility state is showing; otherwise "open
".
A toggle task tracker is either null or a struct which has:
+ +ToggleEvent
.oldState
attribute.Every details
element has a toggle task tracker, initially null.
Every details
element has a details toggle task tracker, which is a
+ toggle task tracker or null, initially null
Whenever the open
attribute is added to or removed from
a details
element, the user agent must run the following steps, which are known as
@@ -59813,16 +59814,16 @@ interface HTMLDetailsElement : HTMLElement {
If element's toggle task tracker is not null, then:
+If element's details toggle task tracker is not null, then:
Set oldState to element's toggle task tracker's - old state.
Set oldState to element's details toggle task + tracker's old state.
Remove element's toggle task tracker's Remove element's details toggle task tracker's task from its task queue.
Set element's toggle task tracker to null.
Set element's details toggle task tracker to null.
newState
attribute
initialized to newState.
- Set element's toggle task tracker to null.
Set element's details toggle task tracker to null.
Set element's toggle task tracker to a struct with Set element's details toggle task tracker to a struct with task set to the just-queued task and old state set
to oldState.
A toggle task tracker is either null or a struct which has:
+A toggle task tracker is a struct which has:
Every HTML element has a popover showing or hiding, which is a boolean, initially set to false.
-Every HTML element has a toggle task tracker, - initially null.
+Every HTML element popover toggle task tracker, + which is a toggle task tracker or null, initially nul.
The following attribute change steps, given element, localName, oldValue, @@ -82852,16 +82853,16 @@ dictionary DragEventInit : MouseEventInit {
If element's toggle task tracker is not null, then:
+If element's popover toggle task tracker is not null, then:
Set oldState to element's toggle task tracker's - old state.
Set oldState to element's popover toggle task + tracker's old state.
Remove element's toggle task tracker's Remove element's popover toggle task tracker's task from its task queue.
Set element's toggle task tracker to null.
Set element's popover toggle task tracker to null.
newState
attribute
initialized to newState.
- Set element's toggle task tracker to null.
Set element's popover toggle task tracker to null.
Set element's toggle task tracker to a struct with Set element's popover toggle task tracker to a struct with task set to the just-queued task and old state set
to oldState.
ToggleEvent
interface[Exposed=Window]
-interface ToggleEvent : Event {
- constructor(DOMString type, optional ToggleEventInit eventInitDict = {});
- readonly attribute DOMString oldState;
- readonly attribute DOMString newState;
-};
-
-dictionary ToggleEventInit : EventInit {
- DOMString oldState = "";
- DOMString newState = "";
-};
-
- event.oldState
Set to "closed
" when transitioning from closed to open, or set to
- "open
" when transitioning from open to closed.
event.newState
Set to "open
" when transitioning from closed to open, or set to "closed
" when transitioning from open to closed.
The oldState
attribute must return the value it
- was initialized to. It is initialized to "open
" if the element with the
- popover
attribute's popover visibility state is
- showing; otherwise "closed
".
The newState
attribute must return the value it was
- initialized to. It is initialized to "closed
" if the element with the popover
attribute's popover visibility state is showing; otherwise "open
".
A toggle task tracker is either null or a struct which has:
- -ToggleEvent
.oldState
attribute.Every details
element has a details toggle task tracker, which is a
- toggle task tracker or null, initially null
Whenever the open
attribute is added to or removed from
a details
element, the user agent must run the following steps, which are known as
@@ -82687,7 +82687,7 @@ dictionary DragEventInit : MouseEventInit {
hiding, which is a boolean, initially set to false.
Every HTML element popover toggle task tracker, - which is a toggle task tracker or null, initially nul.
+ which is a toggle task tracker or null, initially null.The following attribute change steps, given element, localName, oldValue,