forked from qtwebkit/qtwebkit
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression(264098@main) HTMLFieldsetElement behavior for :enabled / :…
…disabled CSS selectors is incorrect https://bugs.webkit.org/show_bug.cgi?id=258078 Reviewed by Tim Nguyen. 264098@main updated HTMLFieldSetElement::isDisabledFormControl() to return false since a fieldset element can never be disabled per the specification. This had the side effect of affecting our behavior for :enabled / :disabled CSS selectors, which relied on this function. However, the behavior of these CSS selectors shouldn't have changed since they rely on the "actually disabled" state, not the "disabled" state [1]. There were two issues here, some of our CSS selector logic was relying on isDisabledFormControl() instead of isActuallyDisabled(). Also, 264098@main shouldn't have changed the value returned by isActuallyDisabled() for HTMLFieldsetElements. This was pointed out at: - whatwg/html#5886 (comment) [1] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-enabled [2] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-disabled [3] https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled [4] https://html.spec.whatwg.org/multipage/form-elements.html#concept-fieldset-disabled * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/enabled.html: * Source/WebCore/css/SelectorCheckerTestFunctions.h: (WebCore::matchesEnabledPseudoClass): * Source/WebCore/html/HTMLElement.h: * Source/WebCore/html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::isActuallyDisabled const): * Source/WebCore/html/HTMLFieldSetElement.h: Canonical link: https://commits.webkit.org/265166@main
- Loading branch information
Showing
7 changed files
with
20 additions
and
10 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
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 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