You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Since the default encoding for the form element is application/x-www-form-urlencoded we would expect the form data to be url encoded.
Additional context
I've had a quick look at the sources and think I could create a PR for this. I just want to check first that there is not a reason for the current behaviour. Also, I'm new to Happy DOM so I may be missing a trick.
The text was updated successfully, but these errors were encountered:
Forms now correctly handle `<form enctype="...">`, `<button formenctype="...">`, and `<input type="button" formenctype="...">`.
Limitations:
1. `text/plain` is not supported.
2. `<input type="image">` is not supported.
BREAKING CHANGE: The default encoding for form submissions is now `application/x-www-form-urlencoded` instead of `multipart/form-data`
Describe the bug
When a form is submitted, if the form's method is not get the form data is always encoded as multipart form data.
To Reproduce
Output:
Expected behavior
Since the default encoding for the form element is
application/x-www-form-urlencoded
we would expect the form data to be url encoded.Additional context
I've had a quick look at the sources and think I could create a PR for this. I just want to check first that there is not a reason for the current behaviour. Also, I'm new to Happy DOM so I may be missing a trick.
The text was updated successfully, but these errors were encountered: