Skip to content

Commit a1f4382

Browse files
authored
Fix focus navigation scope owner for popovers
The focus navigation scope owner was erroneously set to the popover itself for popovers, when it should be the popover's invoker element. Fixes #11159.
1 parent 7f7076f commit a1f4382

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80950,9 +80950,9 @@ dictionary <dfn dictionary>CommandEventInit</dfn> : <span>EventInit</span> {
8095080950
<hr>
8095180951

8095280952
<p>A node is a <dfn>focus navigation scope owner</dfn> if it is a <code>Document</code>, a
80953-
<span>shadow host</span>, a <span>slot</span>, or an element in the <span
80954-
data-x="popover-showing-state">popover showing state</span> which also has a <span>popover
80955-
invoker</span> set.</p>
80953+
<span>shadow host</span>, a <span>slot</span>, or an element which is the <span>popover
80954+
invoker</span> of an element in the <span data-x="popover-showing-state">popover showing
80955+
state</span>.</p>
8095680956

8095780957
<p>Each <span>focus navigation scope owner</span> has a <dfn>focus navigation scope</dfn>, which
8095880958
is a list of elements. Its contents are determined as follows:</p>
@@ -80974,7 +80974,8 @@ dictionary <dfn dictionary>CommandEventInit</dfn> : <span>EventInit</span> {
8097480974
parent's <span>node document</span>.</p></li>
8097580975

8097680976
<li><p>If <var>element</var> is in the <span data-x="popover-showing-state">popover showing
80977-
state</span> and has a <span>popover invoker</span> set, then return <var>element</var>.</p></li>
80977+
state</span> and has a <span>popover invoker</span> set, then return <var>element</var>'s
80978+
<span>popover invoker</span>.</p></li>
8097880979

8097980980
<li><p>Return <var>element</var>'s parent's <span>associated focus navigation owner</span>.</p></li>
8098080981
</ol>

0 commit comments

Comments
 (0)