From f60c3a05a7513041e4075cce82c376d1f21da7ca Mon Sep 17 00:00:00 2001
From: Joey Arhar If localName is not Let fireEvents be false if value is null, otherwise true. If oldValue and value are in different states, then run the hide popover algorithm given
- element, true, true, and false.popover
, then
return.
If the result of running check popover validity given element, - true, throwExceptions, and null is false, then return.
If fireEvents is true and the result of running check popover + validity given element, true, throwExceptions, and null is false, + then return.
If fireEvents is false and element's popover visibility + state is hidden, then return.
Let document be element's node document.
If the result of running check popover validity given element, - true, and throwExceptions is false, then run cleanupHidingFlag and - return.
+If fireEvents is true and the result of running check popover + validity given element, true, and throwExceptions is false, then + run cleanupHidingFlag and return.
Check popover validity is called again because running hide all popovers until could have disconnected
element or changed its popover
attribute.
If fireEvents is false and element's popover visibility + state is hidden, then run + cleanupHidingFlag and return.
If the last item in document's auto popover list is element, then break.
If removedNode's popover
attribute is not in
the no popover state, then run the hide
- popover algorithm given removedNode, false, false, and false.
A DragEventInit : MouseEventInit {
If localName is not popover
, then
return.
Let fireEvents be false if value is null, otherwise true.
If oldValue and value are in different states, then run the hide popover algorithm given - element, true, fireEvents, and false.
If the result of running check popover validity given element, - false, throwExceptions, and null is false, then run cleanupShowingFlag and - return.
Assert: element is not in document's top layer.
If the result of running check popover validity given element, false, - throwExceptions, and document is false, then run + throwExceptions, document, and false is false, then run cleanupShowingFlag and return.
Check popover validity is called again because firing the If the result of running check popover validity given element,
- false, throwExceptions, and document is false, then run
+ false, throwExceptions, document, and false is false, then run
cleanupShowingFlag and return. Check popover validity is called again because running DragEventInit : MouseEventInit {
method steps are: Run the hide popover algorithm given this, true, true, and
- true. Run the hide popover algorithm given this, true, true, true, and
+ false. To hide a popover given an HTML element element, a boolean focusPreviousElement, a
- boolean fireEvents, and a boolean throwExceptions:DragEventInit : MouseEventInit {
-
If fireEvents is true and the result of running check popover - validity given element, true, throwExceptions, and null is false, - then return.
If fireEvents is false and element's popover visibility - state is hidden, then return.
If the result of running check popover validity given element, + true, throwExceptions, null, and ignoreDomState is false, then + return.
Let document be element's node document.
If fireEvents is true and the result of running check popover - validity given element, true, and throwExceptions is false, then - run cleanupHidingFlag and return.
+If the result of running check popover validity given element, + true, throwExceptions, and ignoreDomState is false, then run + cleanupHidingFlag and return.
Check popover validity is called again because running hide all popovers until could have disconnected
element or changed its popover
attribute.
If fireEvents is false and element's popover visibility - state is hidden, then run - cleanupHidingFlag and return.
If the last item in document's auto popover list is element, then break.
If the result of running check popover validity given element, - true, throwExceptions, and null is false, then run cleanupHidingFlag and - return.
+ true, throwExceptions, null, and ignoreDomState is false, then run + cleanupHidingFlag and return.Check popover validity is called again because firing the beforetoggle
event could have disconnected
@@ -82730,8 +82723,8 @@ dictionary DragEventInit : MouseEventInit {
If this's popover visibility state is showing, and force is not present or false, then - run the hide popover algorithm given this, true, true, and - true.
Otherwise, if force is not present or true, then run show popover given this true, and null.
Run the hide popover algorithm given popover, - focusPreviousElement, fireEvents, and false.
Set popover to document's topmost auto popover.
Run the hide popover algorithm given document's auto popover list's last element, focusPreviousElement, fireEvents, - and false.
To check popover validity for an HTML element
element given a boolean expectedToBeShowing, a boolean
- throwExceptions, and a Document
or null expectedDocument
- perform the following steps. They throw an exception or return a boolean.
Document
or null expectedDocument, and a
+ boolean ignoreDomState, perform the following steps. They throw an exception or return
+ a boolean.
If element's popover
attribute is in the
- no popover state, then:
If ignoreDomState is false and element's popover
attribute is in the no popover state, then:
If throwExceptions is true, then throw a @@ -83020,10 +83015,11 @@ dictionary DragEventInit : MouseEventInit {
If one of the following conditions is true
element is not connected
ignoreDomState is false and element is not + connected
expectedDocument is not null and element's node - document is not expectedDocument
ignoreDomState is false and expectedDocument is not null and + element's node document is not expectedDocument
element is a dialog
element and its is modal flag
is set to true.
If popover's popover visibility state is showing, then run the hide popover algorithm - given popover, true, true, and false.
Otherwise, if popover's popover visibility state is hidden and the result of running check popover - validity given popover, false, false, and null is true, then run show - popover given popover, false, and node.
To get the popover target element given a Node
node, perform
@@ -83217,7 +83213,8 @@ dictionary DragEventInit : MouseEventInit {
topmost auto popover showing, user agents may provide a user interface that, upon
activation, queues an element task on the user
interaction task source given topmost auto popover to run the hide
- popover algorithm given the topmost auto popover, true, true, and false.
To light dismiss open popovers, given an Event
event:
If removedNode's popover
attribute is not in
the no popover state, then run the hide
- popover algorithm given removedNode, false, false, false, true, and
- false.
A