Commit 2a9b68c
committed
try-login: use requestSubmit for form submissions
`form.submit()` performs a low-level form submission that bypasses HTML
validation, submit events, and submitter handling.
`requestSubmit()` triggers the full browser submission flow, matching the
behavior of a real user clicking the submit button, including form validation.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit1 parent eb25858 commit 2a9b68c
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments