Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update shadow DOM and dialog element focusing to latest spec
https://bugs.webkit.org/show_bug.cgi?id=233320 <rdar://85753180> Reviewed by Ryosuke Niwa. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-double-nested-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-expected.txt: * Source/WebCore/dom/Element.cpp: (WebCore::autoFocusDelegate): (WebCore::findFocusDelegateInternal): (WebCore::Element::findFocusDelegate): (WebCore::Element::focus): (WebCore::focusDelegateFromShadowHost): Deleted. * Source/WebCore/dom/Element.h: * Source/WebCore/html/HTMLDialogElement.cpp: (WebCore::HTMLDialogElement::runFocusingSteps): Canonical link: https://commits.webkit.org/252959@main
- Loading branch information
Showing
5 changed files
with
30 additions
and
44 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...cs/interactive-elements/the-dialog-element/dialog-focus-shadow-double-nested-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL show() assert_equals: document.activeElement expected Element node <div></div> but got Element node <button tabindex="-1">Focusable</button> | ||
FAIL showModal() assert_equals: document.activeElement expected Element node <div></div> but got Element node <button tabindex="-1">Focusable</button> | ||
PASS show() | ||
PASS showModal() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters