@@ -61962,22 +61962,25 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
61962
61962
</ol>
61963
61963
61964
61964
<p>The <dfn method for="HTMLDialogElement"><code
61965
- data-x="dom-dialog-showModal">showModal()</code></dfn> method steps are:</p>
61965
+ data-x="dom-dialog-showModal">showModal()</code></dfn> method steps are to <span>show a modal
61966
+ dialog</span> given <span>this</span>.</p>
61967
+
61968
+ <p>To <dfn>show a modal dialog</dfn> given a <code>dialog</code> element <var>subject</var>:</p>
61966
61969
61967
61970
<ol>
61968
- <li><p>If <span>this</span > has an <code data-x="attr-dialog-open">open</code> attribute and
61969
- <span>is modal</span> of <span>this</span > is true, then return.</p></li>
61971
+ <li><p>If <var>subject</var > has an <code data-x="attr-dialog-open">open</code> attribute and
61972
+ <span>is modal</span> of <var>subject</var > is true, then return.</p></li>
61970
61973
61971
- <li><p>If <span>this</span > has an <code data-x="attr-dialog-open">open</code> attribute, then
61974
+ <li><p>If <var>subject</var > has an <code data-x="attr-dialog-open">open</code> attribute, then
61972
61975
throw an <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>.</p></li>
61973
61976
61974
- <li><p>If <span>this</span >'s <span>node document</span> is not <span>fully active</span>, then
61977
+ <li><p>If <var>subject</var >'s <span>node document</span> is not <span>fully active</span>, then
61975
61978
throw an <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>.</p></li>
61976
61979
61977
- <li><p>If <span>this</span > is not <span>connected</span>, then throw an
61980
+ <li><p>If <var>subject</var > is not <span>connected</span>, then throw an
61978
61981
<span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>.</p></li>
61979
61982
61980
- <li><p>If <span>this</span > is in the <span data-x="popover-showing-state">popover showing
61983
+ <li><p>If <var>subject</var > is in the <span data-x="popover-showing-state">popover showing
61981
61984
state</span>, then throw an <span>"<code>InvalidStateError</code>"</span>
61982
61985
<code>DOMException</code>.</p></li>
61983
61986
@@ -61986,35 +61989,35 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
61986
61989
data-x="dom-Event-cancelable">cancelable</code> attribute initialized to true, the <code
61987
61990
data-x="dom-ToggleEvent-oldState">oldState</code> attribute initialized to "<code
61988
61991
data-x="">closed</code>", and the <code data-x="dom-ToggleEvent-newState">newState</code>
61989
- attribute initialized to "<code data-x="">open</code>" at <span>this</span > is false, then
61992
+ attribute initialized to "<code data-x="">open</code>" at <var>subject</var > is false, then
61990
61993
return.</p></li>
61991
61994
61992
- <li><p>If <span>this</span > has an <code data-x="attr-dialog-open">open</code> attribute,
61995
+ <li><p>If <var>subject</var > has an <code data-x="attr-dialog-open">open</code> attribute,
61993
61996
then return.</p></li>
61994
61997
61995
- <li><p>If <span>this</span > is not <span>connected</span>, then return.</p></li>
61998
+ <li><p>If <var>subject</var > is not <span>connected</span>, then return.</p></li>
61996
61999
61997
- <li><p>If <span>this</span > is in the <span data-x="popover-showing-state">popover showing
62000
+ <li><p>If <var>subject</var > is in the <span data-x="popover-showing-state">popover showing
61998
62001
state</span>, then return.</p></li>
61999
62002
62000
62003
<li><p><span>Queue a dialog toggle event task</span> given <var>subject</var>, "<code
62001
62004
data-x="">closed</code>", and "<code data-x="">open</code>".</p></li>
62002
62005
62003
- <li><p>Add an <code data-x="attr-dialog-open">open</code> attribute to <span>this</span >, whose
62006
+ <li><p>Add an <code data-x="attr-dialog-open">open</code> attribute to <var>subject</var >, whose
62004
62007
value is the empty string.</p></li>
62005
62008
62006
- <li><p>Set <span>is modal</span> of <span>this</span > to true.</p></li>
62009
+ <li><p>Set <span>is modal</span> of <var>subject</var > to true.</p></li>
62007
62010
62008
- <li><p><span>Assert</span>: <span>this</span >'s <span>node document</span>'s <span>open
62011
+ <li><p><span>Assert</span>: <var>subject</var >'s <span>node document</span>'s <span>open
62009
62012
dialogs list</span> does not <span data-x="list contains">contain</span>
62010
- <span>this</span >.</p></li>
62013
+ <var>subject</var >.</p></li>
62011
62014
62012
- <li><p>Add <span>this</span > to <span>this</span >'s <span>node document</span>'s <span>open
62015
+ <li><p>Add <var>subject</var > to <var>subject</var >'s <span>node document</span>'s <span>open
62013
62016
dialogs list</span>.</p></li>
62014
62017
62015
62018
<li>
62016
- <p>Let <span>this</span >'s <span>node document</span> be <span data-x="blocked by a modal
62017
- dialog">blocked by the modal dialog</span> <span>this</span >.</p>
62019
+ <p>Let <var>subject</var >'s <span>node document</span> be <span data-x="blocked by a modal
62020
+ dialog">blocked by the modal dialog</span> <var>subject</var >.</p>
62018
62021
62019
62022
<p class="note" id="note-dialog-plus-focus-fixup">This will cause the <span>focused area of the
62020
62023
document</span> to become <span>inert</span> (unless that currently focused area is a
@@ -62024,23 +62027,23 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
62024
62027
focus.</p>
62025
62028
</li>
62026
62029
62027
- <li><p>If <span>this</span >'s <span>node document</span>'s <span>top layer</span> does not
62028
- already <span data-x="list contains">contain</span> <span>this</span >, then <span>add an element
62029
- to the top layer</span> given <span>this</span >.</p></li>
62030
+ <li><p>If <var>subject</var >'s <span>node document</span>'s <span>top layer</span> does not
62031
+ already <span data-x="list contains">contain</span> <var>subject</var >, then <span>add an element
62032
+ to the top layer</span> given <var>subject</var >.</p></li>
62030
62033
62031
- <li><p><span>Set the dialog close watcher</span> with <span>this</span >.</p></li>
62034
+ <li><p><span>Set the dialog close watcher</span> with <var>subject</var >.</p></li>
62032
62035
62033
- <li><p>Set <span>this</span >'s <span>previously focused element</span> to the
62036
+ <li><p>Set <var>subject</var >'s <span>previously focused element</span> to the
62034
62037
<span>focused</span> element.</p></li>
62035
62038
62036
- <li><p>Let <var>document</var> be <span>this</span >'s <span>node document</span>.</p></li>
62039
+ <li><p>Let <var>document</var> be <var>subject</var >'s <span>node document</span>.</p></li>
62037
62040
62038
62041
<li><p>Let <var>hideUntil</var> be the result of running <span>topmost popover ancestor</span>
62039
- given <span>this</span >, <var>document</var>'s <span>showing hint popover list</span>, null, and
62042
+ given <var>subject</var >, <var>document</var>'s <span>showing hint popover list</span>, null, and
62040
62043
false.</p></li>
62041
62044
62042
62045
<li><p>If <var>hideUntil</var> is null, then set <var>hideUntil</var> to the result of running
62043
- <span>topmost popover ancestor</span> given <span>this</span >, <var>document</var>'s
62046
+ <span>topmost popover ancestor</span> given <var>subject</var >, <var>document</var>'s
62044
62047
<span>showing auto popover list</span>, null, and false.</p></li>
62045
62048
62046
62049
<li><p>If <var>hideUntil</var> is null, then set <var>hideUntil</var> to
@@ -62049,7 +62052,7 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
62049
62052
<li><p>Run <span data-x="hide-all-popovers-until">hide all popovers until</span> given
62050
62053
<var>hideUntil</var>, false, and true.</p></li>
62051
62054
62052
- <li><p>Run the <span>dialog focusing steps</span> given <span>this</span >.</p></li>
62055
+ <li><p>Run the <span>dialog focusing steps</span> given <var>subject</var >.</p></li>
62053
62056
</ol>
62054
62057
62055
62058
<p id="canceling-dialogs">To <dfn>set the dialog close watcher</dfn>, given a <code>dialog</code>
@@ -62063,9 +62066,10 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
62063
62066
62064
62067
<ul>
62065
62068
<li><p><i data-x="create-close-watcher-cancelAction">cancelAction</i> given
62066
- <var>canPreventClose</var> being to return the result of <span data-x="concept-event-fire">firing
62067
- an event</span> named <code data-x="event-cancel">cancel</code> at <var>dialog</var>, with the
62068
- <code data-x="dom-Event-cancelable">cancelable</code> attribute initialized to
62069
+ <var>canPreventClose</var> being to return the result of <span
62070
+ data-x="concept-event-fire">firing an event</span> named <code
62071
+ data-x="event-cancel">cancel</code> at <var>dialog</var>, with the <code
62072
+ data-x="dom-Event-cancelable">cancelable</code> attribute initialized to
62069
62073
<var>canPreventClose</var>.</p></li>
62070
62074
62071
62075
<li><p><i data-x="create-close-watcher-closeAction">closeAction</i> being to <span>close the
0 commit comments