Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
siliu1 committed Dec 19, 2024
1 parent f49ccf5 commit 1cdef9a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -61525,7 +61525,8 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {

<ol>
<li><p>If this algorithm is triggered without <span data-x="transient activation">transient use
activation</span> and the <var>target</var> is not <span>allowed to use</span> the "<code
activation</span> in <var>current</var>'s <span>relevant global object</span> and <var>current</var>'s
<span>active document</span> is not <span>allowed to use</span> the "<code
data-x="focus-without-user-activation-feature">focus-without-user-activation</code>" feature,
then return.</p></li>

Expand Down Expand Up @@ -80542,9 +80543,10 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
<li><p>If <var>current</var> is null, then return.</p></li>

<li><p>If this algorithm is triggered without <span data-x="transient activation">transient user
activation</span> and is not triggered by script execution from <var>current</var>'s
<span>ancestor navigables</span>, and <var>current</var>'s <span>active document</span> is not
<span>allowed to use</span> the "<code data-x="focus-without-user-activation-feature">
activation</span> in <var>current</var>'s <span>relevant global object</span> and is not triggered
by invoking <code data-x="dom-focus">focus()</code> method on a <span data-x="concept-tree-child">child</span>
of <var>current</var>'s <span>ancestor navigables</span>' <span>active document</span>, and <var>current</var>'s
<span>active document</span> is not <span>allowed to use</span> the "<code data-x="focus-without-user-activation-feature">
focus-without-user-activation</code>" feature, then return.</p></li>

<li><p>Run the <span>focusing steps</span> with <var>current</var>.</p></li>
Expand All @@ -80567,10 +80569,11 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {

<ol>
<li><p>If this algorithm is triggered without <span data-x="transient activation">transient user
activation</span> and is not triggered by script execution from element's <span>ancestor
navigables</span>, and the element's <span>node document</span> is not <span>allowed to use</span>
the "<code data-x="focus-without-user-activation-feature">focus-without-user-activation</code>"
feature, then return.</p></li>
activation</span> in <var>current</var>'s <span>relevant global object</span> and is not triggered
by invoking <code data-x="dom-focus">focus()</code> method on a <span data-x="concept-tree-child">child</span>
of <var>current</var>'s <span>ancestor navigables</span>' <span>active document</span>, and the element's
<span>node document</span> is not <span>allowed to use</span> the "<code data-x="focus-without-user-activation-feature">
focus-without-user-activation</code>" feature, then return.</p></li>

<li><p>If the element is marked as <i data-x="locked for focus">locked for focus</i>, then return.</p></li>

Expand Down Expand Up @@ -80679,9 +80682,9 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
<span>sandboxed automatic features browsing context flag</span>, then return.</p></li>

<li><p>If this algorithm is triggered without <span data-x="transient activation">transient use
activation</span> and the <var>target</var> is not <span>allowed to use</span> the "<code
data-x="focus-without-user-activation-feature">focus-without-user-activation</code>" feature,
then return.</p></li>
activation</span> in <var>current</var>'s <span>relevant global object</span> and <var>target</var>
is not <span>allowed to use</span> the "<code data-x="focus-without-user-activation-feature">
focus-without-user-activation</code>" feature, then return.</p></li>

<li><p><span data-x="list iterate">For each</span> <var>ancestorNavigable</var> of
<var>target</var>'s <span>ancestor navigables</span>: if <var>ancestorNavigable</var>'s <span
Expand Down Expand Up @@ -85745,7 +85748,8 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {

<ol>
<li><p>If this algorithm is triggered without <span data-x="transient activation">transient use
activation</span> and the <var>target</var> is not <span>allowed to use</span> the "<code
activation</span> in <var>current</var>'s <span>relevant global object</span> and <var>subject</var>'s
<span>active document</span> is not <span>allowed to use</span> the "<code
data-x="focus-without-user-activation-feature">focus-without-user-activation</code>" feature,
then return.</p></li>

Expand Down

0 comments on commit 1cdef9a

Please sign in to comment.