[webkit-changes] [WebKit/WebKit] 189024: <object> element shouldn't override FormListedElem...
EWS
noreply at github.com
Mon Jan 16 03:18:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 189024a1815a58b3ee79bb3fe3d27dc4c6ccf82b
https://github.com/WebKit/WebKit/commit/189024a1815a58b3ee79bb3fe3d27dc4c6ccf82b
Author: Alexey Shvayka <ashvayka at apple.com>
Date: 2023-01-16 (Mon, 16 Jan 2023)
Changed paths:
M LayoutTests/fast/forms/setCustomValidity-null-parameter.html
M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/object-setcustomvalidity-expected.txt
M Source/WebCore/html/HTMLObjectElement.h
Log Message:
-----------
<object> element shouldn't override FormListedElement::setCustomValidity()
https://bugs.webkit.org/show_bug.cgi?id=250627
Reviewed by Darin Adler.
Per spec [1], <object> element's constraint validation methods are the same as for other objects.
This change removes setCustomValidity() override, allowing <object> element's customError()
to be triggered, which aligns <object> with all the other elements: their validity states
are independent of willValidate().
Removal of validationMessage() override is non-observable: the message can't be retrieved for
an element that is not a candidate for constraint validation [2].
Aligns WebKit with the spec and Gecko.
[1] https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element:the-constraint-validation-api
[2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-validationmessage
* LayoutTests/fast/forms/setCustomValidity-null-parameter.html:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/object-setcustomvalidity-expected.txt:
* Source/WebCore/html/HTMLObjectElement.h:
Canonical link: https://commits.webkit.org/258945@main
More information about the webkit-changes
mailing list