Skip to content

Commit 8213584

Browse files
authored
Fix dialog focus restoring descendant check
1429dac accidentally made the currently focused element check look for the element to restore focus on as an ancestor instead of the dialog element "subject". Correct this to look at the dialog element instead of the element to restore focus to. This was identified at #9178 (comment).
1 parent 734afba commit 8213584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source

+1-1
Original file line numberDiff line numberDiff line change
@@ -62249,7 +62249,7 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
6224962249

6225062250
<li><p>If <var>subject</var>'s <span>node document</span>'s <span>focused area of the
6225162251
document</span>'s <span>DOM anchor</span> is a <span>shadow-including inclusive
62252-
descendant</span> of <var>element</var>, or <var>wasModal</var> is true, then run the
62252+
descendant</span> of <var>subject</var>, or <var>wasModal</var> is true, then run the
6225362253
<span>focusing steps</span> for <var>element</var>; the viewport should not be scrolled by
6225462254
doing this step.</p></li>
6225562255
</ol>

0 commit comments

Comments
 (0)