Skip to content

Commit be5c890

Browse files
authored
Make togglePopover() throw more exceptions
This makes sure that togglePopover() will throw exceptions when it is disconnected from the document or doesn't have a popover attribute. Fixes #8999.
1 parent c3ca6c2 commit be5c890

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82834,6 +82834,19 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
8283482834
<li><p>Otherwise, if <var>force</var> is not present or true, then run <span>show popover</span>
8283582835
given <span>this</span> true, and null.</p></li>
8283682836

82837+
<li>
82838+
<p>Otherwise:</p>
82839+
82840+
<ol>
82841+
<li><p>Let <var>expectedToBeShowing</var> be true if <span>this</span>'s <span>popover
82842+
visibility state</span> is <span data-x="popover-showing-state">showing</span>; otherwise
82843+
false.</p></li>
82844+
82845+
<li><p>Run <span>check popover validity</span> given <var>expectedToBeShowing</var>, true, and
82846+
null.</p></li>
82847+
</ol>
82848+
</li>
82849+
8283782850
<li><p>Return true if <span>this</span>'s <span>popover visibility state</span> is <span
8283882851
data-x="popover-showing-state">showing</span>; otherwise false.</p></li>
8283982852
</ol>

0 commit comments

Comments
 (0)