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
Expose document.forms.namedItem function #1349
Labels
enhancement
New feature or request
Comments
The MDN link should be this: https://developer.mozilla.org/en-US/docs/Web/API/Document/forms |
jean-leonco
added a commit
to jean-leonco/happy-dom
that referenced
this issue
Apr 12, 2024
hi @capricorn86 , |
capricorn86
added a commit
that referenced
this issue
May 6, 2024
…tion fix: [#1349] Return forms as html collection
Thank you for reporting @martialanouman ! 🙂 Big thanks to @jean-leonco for contributing with a fix ⭐ https://github.com/capricorn86/happy-dom/releases/tag/v14.8.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I am creating a Remix app that uses @conform-to/react to manage the forms.
The new v1.0.4 version is using document.forms.namedItem() function but it is not implemented by happy-dom. That does not allow me to test form interaction with happy-dom
Here is the error i got:
Describe the solution you'd like
That
document.forms.namedItem
should be a function, not undefinedDescribe alternatives you've considered
I can't test it as this is how that library implements the useForm hook.
Additional context
https://developer.mozilla.org/en-US/docs/Web/API/Document/forms
The text was updated successfully, but these errors were encountered: