Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
legend.focus() should not delegate focus
legend.focus() should not delegate focus https://bugs.webkit.org/show_bug.cgi?id=189242 Reviewed by Ryosuke Niwa. This patch is to align Webkit with Blink / Chromium, Gecko / Firefox and Web-Specification. Web-Spec Discussion Issue - whatwg/html#3950 Merge - https://chromium.googlesource.com/chromium/src.git/+/2010bba41812ac1f3ea92a286c3894a14535766e This patch removes focus delegation and accesskey from the legend element to align with Web-Specification. * Source/WebCore/html/HTMLLegendElement.h: (1) Remove "HTMLFormControlElement" class (2) Remove "associatedControl", "accessKeyActions" and "focus" function * Source/WebCore/html/HTMLLegendElement.cpp: (HTMLLegendElement::associatedControl): Deleted (HTMLLegendElement::focus): Ditto (HTMLLegendElement::accessKeyAction): Ditto * LayoutTests/fast/form/legend-access-key.html: Deleted * LayoutTests/fast/form/legend-access-key-expected.txt: Deleted * LayoutTests/fast/form/focus.html: Updated * LayoutTests/fast/form/focus-expected.txt: Ditto * LayoutTests/fast/forms/focus-selection-textarea-expected.txt: Ditto * LayoutTests/fast/forms/focus-selection-input.html: Ditto * LayoutTests/fast/forms/focus-selection-input-expected.txt: Ditto * LayoutTests/fast/form/access-key-expected.txt: Ditto * LayoutTests/imported/w3c/web-platform-tests/html/interaction/focus/processing-model/legend-expected.html: Rebaselined * LayoutTests/platform/ios/TestExpectations: Remove 'deleted' testcase expectation * LayoutTests/platform/win/TestExpectations: Remove 'deleted' testcase expectation Canonical link: https://commits.webkit.org/258074@main
- Loading branch information
1 parent
03178c5
commit 05f693e31a84e598a51d00bf3505f1e10049bbc5
Showing
13 changed files
with
34 additions
and
120 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
This test checks to see if focus methods work on a couple types of elements. | ||
|
||
If the test passes, you should see a line saying "focused 1", then 2, then 3. | ||
If the test passes, you should see a line saying "focused 2", then 3. | ||
|
||
legend.focus() should not delegate focus. | ||
|
||
Legend | ||
|
||
Label2 Label3 | ||
focused 1 | ||
focused 2 | ||
focused 3 |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
legend | ||
|
||
|
||
FAIL legend assert_unreached: input in legend was focused Reached unreachable code | ||
PASS legend | ||
|
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