-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form associated ElementInternals always reports customError when using setValidity #19434
Conversation
EWS run on previous version of this PR (hash dfa8426) |
dfa8426
to
de90c54
Compare
EWS run on previous version of this PR (hash de90c54) |
de90c54
to
36008ea
Compare
EWS run on previous version of this PR (hash 36008ea) |
36008ea
to
32904d3
Compare
EWS run on previous version of this PR (hash 32904d3) |
I restarted gtk-wk2. @shvaikalesh I suggest we land this if that passes. Seems like a shame to leave this unfixed. Edit: it seems like this might need to be rebased for the bots to run properly. |
32904d3
to
0b5cb42
Compare
EWS run on previous version of this PR (hash 0b5cb42) |
Any chance of getting this rebased? Is a shame to have this (interop) bug in this API. |
The problem as I understand it is that the gtk-wk2 failure seems real and thus needs investigation by someone(tm). |
…g setValidity https://bugs.webkit.org/show_bug.cgi?id=261432 <rdar://problem/115681066> Reviewed by NOBODY (OOPS!). Initial form-associated custom elements implementation attempted to avoid adding a String field by relying on m_customValidationMessage for both regular [1] and custom [2] validation messages, which turned out to be incompatible with the implementation of FormListedElement::customError(). Rather than deepening the hack / micro-optimization, this change adds a field and precisely implements all the spec steps for setValidity() [3]. [1] https://html.spec.whatwg.org/multipage/custom-elements.html#face-validation-message [2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#custom-validity-error-message [3] https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity * LayoutTests/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation.html: * Source/WebCore/html/FormAssociatedCustomElement.cpp: (WebCore::FormAssociatedCustomElement::setValidity): (WebCore::FormAssociatedCustomElement::validationMessage const): * Source/WebCore/html/FormAssociatedCustomElement.h:
0b5cb42
to
2b9f4fa
Compare
EWS run on current version of this PR (hash 2b9f4fa) |
Hello everyone |
That's great, thanks! |
2b9f4fa
2b9f4fa