From 031d3f1abe587e8aa488a0994f1fac6ea48f49f6 Mon Sep 17 00:00:00 2001
From: Joey Arhar
If the result of running check popover validity given element and - false is false, then:
- -Assert: throwExceptions is true.
Throw an "InvalidStateError
"
- DOMException
.
If the result of running check popover validity given element, + false, and throwExceptions is false, then return.
Assert: element is not in element's node document's top layer.
If the result of running check popover validity given element and - false is false:
- -If throwExceptions is true, then throw an
- "InvalidStateError
" DOMException
.
Otherwise, return.
If the result of running check popover validity given element, false, + and throwExceptions is false, then return.
Check popover validity is called again because firing the beforetoggle
event could have disconnected this element or
@@ -81919,14 +81903,8 @@ dictionary DragEventInit : MouseEventInit {
If originalType is not equal to the value of element's popover
attribute, or if the result of running check
- popover validity given element and false is false:
If throwExceptions is true, then throw an
- "InvalidStateError
" DOMException
.
Otherwise, return.
Check popover validity is called again because running hide all popovers until above could have fired the @@ -82020,17 +81998,8 @@ dictionary DragEventInit : MouseEventInit { boolean fireEvents, and a boolean throwExceptions:
If the result of running check popover validity given element and - true is false:
- -If throwExceptions is true, then throw an
- "InvalidStateError
" DOMException
.
Otherwise, return.
If the result of running check popover validity given element, + true, and throwExceptions is false, then return.
Let document be element's node document.
closed
" at element.If the result of running check popover validity given element and - true is false:
- -If throwExceptions is true, then throw an
- "InvalidStateError
" DOMException
.
Otherwise, return.
If the result of running check popover validity given element, + true, and throwExceptions is false, then return.
Check popover validity is called again because firing the beforetoggle
event could have disconnected this element or
@@ -82358,27 +82320,50 @@ dictionary DragEventInit : MouseEventInit {
To check popover validity for an HTML element - element given a boolean expectedToBeShowing, perform the following steps. - They return a boolean.
+ element given a boolean expectedToBeShowing and a boolean + throwExceptions, perform the following steps. They throw an exception or return a + boolean.If element's popover
attribute is in the
- no popover state, then return false.
If element's popover
attribute is in the
+ no popover state, then:
If element is not connected, then return false.
If throwExceptions is true, then throw a
+ "NotSupportedError
" DOMException
.
If expectedToBeShowing is true and element's popover - visibility state is not showing, then return - false.
Return false.
If expectedToBeShowing is false and element's popover - visibility state is not hidden, then return - false.
If one of the following conditions is true
-If element is a dialog
element and has the open
attribute, then return false.
element is not connected
expectedToBeShowing is true and element's popover visibility + state is not showing
expectedToBeShowing is false and element's popover + visibility state is not hidden
element is a dialog
element and has an open
attribute
element's fullscreen flag is set
then:
+ +If throwExceptions is true, then throw a
+ "InvalidStateError
" DOMException
.
If element's fullscreen flag is set, then return false.
Return false.
Return true.