mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
LibWeb/HTML: Fix dialog focus restoring descendant check
Corresponds to 82135842dc
This commit is contained in:
parent
89f36168b7
commit
4374bf2202
Notes:
github-actions[bot]
2025-02-22 15:01:05 +00:00
Author: https://github.com/AtkinsSJ
Commit: 4374bf2202
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3647
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ void HTMLDialogElement::close_the_dialog(Optional<String> result)
|
|||
// FIXME: 12. If subject's previously focused element is not null, then:
|
||||
// 1. Let element be subject's previously focused element.
|
||||
// 2. Set subject's previously focused element to null.
|
||||
// 3. If subject's node document's focused area of the document's DOM anchor is a shadow-including inclusive descendant of element,
|
||||
// 3. If subject's node document's focused area of the document's DOM anchor is a shadow-including inclusive descendant of subject,
|
||||
// or wasModal is true, then run the focusing steps for element; the viewport should not be scrolled by doing this step.
|
||||
|
||||
// 13. Queue an element task on the user interaction task source given the subject element to fire an event named close at subject.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue