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
User interacted flag isn't always set on interactive submission #10066
Comments
That means that per spec: <!doctype html>
<style>
:user-invalid {
outline: 2px solid red;
}
</style>
<form>
<input name="i3" required>
<input name="i2" required>
<button type=submit>Click</button>
</form> Clicking shouldn't make the |
cc @nt1m @josepharhar @mfreed7, do you know what WebKit / Blink do here? |
My understanding is that WebKit does this before step 5.3 of https://html.spec.whatwg.org/#form-submission-algorithm |
Fixes whatwg#10066, matches WebKit and (soon) Gecko.
So is the idea that clicking on the submit button should make all the form elements start matching :user-valid/:user-invalid whether the form submission succeeds or not? Is there a test for this? |
Yes, tests fail without it afaict |
Fixes #10066. This should match WebKit and (soon) Gecko.
What is the issue with the HTML Standard?
https://html.spec.whatwg.org/#concept-form-submit has a bunch of early returns before calling "constructing the entry list", which is what actually sets the "user interactive" flag.
The text was updated successfully, but these errors were encountered: