Skip to content

Commit

Permalink
Add closewatcher override for requestClose
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreed7 committed Dec 6, 2024
1 parent 3f413d3 commit d9ed19f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -61993,7 +61993,8 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
value</span>.</p></li>

<li><p><i data-x="create-close-watcher-getEnabledState">getEnabledState</i> being to return
true if <var>dialog</var>'s <span>computed closed-by state</span> is not <span
true if <var>dialog</var>'s <span>enable closewatcher for requestclose</span> is true or
<var>dialog</var>'s <span>computed closed-by state</span> is not <span
data-x="attr-dialog-closedby-none-state">None</span>; otherwise false.</p></li>
</ul>
</li>
Expand Down Expand Up @@ -62102,13 +62103,19 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
<li><p><span>Assert</span>: <var>this</var>'s <span data-x="dialog-close-watcher">close
watcher</span> is not null.</p></li>

<li><p>Set <var>dialog</var>'s <span>enable closewatcher for requestclose</span> to
true.</p></li>

<li><p>If <var>returnValue</var> is not given, then set it to null.</p></li>

<li><p>Set <var>this</var>'s <span>request close return value</span> to
<var>returnValue</var>.</p></li>

<li><p><span data-x="close-watcher-request-close">Request to close</span> <var>dialog</var>'s
<span data-x="dialog-close-watcher">close watcher</span>.</p></li>

<li><p>Set <var>dialog</var>'s <span>enable closewatcher for requestclose</span> to
false.</p></li>
</ol>

<p>When a <code>dialog</code> element <var>subject</var> is to be <dfn data-x="close the
Expand Down Expand Up @@ -62236,6 +62243,9 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
<p>Each <code>dialog</code> element has a <dfn>request close return value</dfn>, which is a
string, initially null.</p>

<p>Each <code>dialog</code> element has an <dfn>enable closewatcher for requestclose</dfn> flag,
initially false.</p>

<p>Each <code>dialog</code> element has an <dfn>is modal</dfn> flag. When a <code>dialog</code>
element is created, this flag must be set to false.</p>

Expand Down

0 comments on commit d9ed19f

Please sign in to comment.