-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 submission: Should check connected twice #2708
Comments
Agreed, will fix. Are there existing web platform tests perchance? |
I think no. |
See #2615 (comment) and that whole issue really. If we don't do connected checks for |
Note that step 2 of this algorithm doesn't check for the form being connected, though it seems to think (as of #1383) that it does... |
Oh goodness, that's embarrassing :). So it seems like browsers should probably hold off on making changes here until we get agreement on #2615 (i.e. the analogous issue for a/area). Otherwise we might end up removing the connected check entirely. I will update all the bugs I filed asking browsers to hold off. |
Bugs updated, that I should ping again once we get our story straight: |
#2708 (comment) pointed out that this check was just broken, so this fixes it. But the check is also under discussion in #2615 and #2708, pending compat data, so this adds a warning in the meantime.
#2708 (comment) pointed out that this check was just broken, so this fixes it. But the check is also under discussion in #2615 and #2708, pending compat data, so this adds a warning in the meantime.
whatwg#2708 (comment) pointed out that this check was just broken, so this fixes it. But the check is also under discussion in whatwg#2615 and whatwg#2708, pending compat data, so this adds a warning in the meantime.
Require that they are all connected to a document (except for <a>) that is fully active (including <a>). There is enough difference between implementations that this appears to be web compatible. Also perform a second connected check for <form>. Tests: * web-platform-tests/wpt#5758 * web-platform-tests/wpt#5759 * web-platform-tests/wpt#5761 Fixes whatwg#2615 and fixes whatwg#2708.
Specification: https://html.spec.whatwg.org/multipage/forms.html#form-submission-algorithm
We should add step 5.3 to check 'connected' again because
submit
event handler may disconnect the form, and Chrome, Firefox, and Edge have 'connected' check here.(probably, sanboxing flag too?)
With the following HTML, Chrome, Firefox, and Edge don't submit the form by clicking the submit button.
The text was updated successfully, but these errors were encountered: