Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f04ebd901becdc731860620a86e0efdc62400e06
https://github.com/WebKit/WebKit/commit/f04ebd901becdc731860620a86e0efdc62400e06
Author: Anne van Kesteren <[email protected]>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation.html
M
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation-expected.txt
M Source/WebCore/html/FormAssociatedCustomElement.cpp
Log Message:
-----------
Allow self to be passed as validation anchor
https://bugs.webkit.org/show_bug.cgi?id=294903
Reviewed by Ryosuke Niwa.
In 292770@main we made the control the fallback when the validation
anchor was not given. This created a slight inconsistency with the API
which would throw if you passed the control as validation anchor.
This changes the API to allow passing the control as per step 8 of
https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity
(Note that the specification implements the fallback as part of the API
call, but that is not how we implement it.)
Test changes are already upstreamed:
https://github.com/web-platform-tests/wpt/pull/53353
Canonical link: https://commits.webkit.org/296622@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes