From 2b29c07164dc09c920ccfff2e04da73e5f287165 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Tue, 4 Feb 2025 15:14:10 -0800 Subject: [PATCH] Fix dialog focus restoring descendant check In https://github.com/whatwg/html/pull/9178 I accidentally made the currently focused element check look for the element to restore focus on as an ancestor instead of the dialog element "subject". This PR corrects this to look at the dialog element instead of the element to restore focus to. This was identified here: https://github.com/whatwg/html/pull/9178#issuecomment-2620457606 --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 2f6d690e48d..52259ce8fce 100644 --- a/source +++ b/source @@ -62249,7 +62249,7 @@ interface HTMLDialogElement : HTMLElement {
  • If subject's node document's focused area of the document's DOM anchor is a shadow-including inclusive - descendant of element, or wasModal is true, then run the + descendant of subject, or wasModal is true, then run the focusing steps for element; the viewport should not be scrolled by doing this step.