Closed martialanouman closed 2 months ago
The MDN link should be this: https://developer.mozilla.org/en-US/docs/Web/API/Document/forms
hi @capricorn86 , any chance to check the PR ?
Thank you for reporting @martialanouman ! :slightly_smiling_face:
Big thanks to @jean-leonco for contributing with a fix :star:
https://github.com/capricorn86/happy-dom/releases/tag/v14.8.2
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