Skip to content
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 the Forms in document.forms #1260

Closed
juandiegombr opened this issue Feb 12, 2024 · 0 comments
Closed

Expose the Forms in document.forms #1260

juandiegombr opened this issue Feb 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@juandiegombr
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am creating a React app that uses @conform-to/react to manage the forms.

In the new v1 version it is using document.forms but it is not implemented by happy-dom.

That blocks me in order to use happy-dom to test it.

Describe the solution you'd like
That document.forms returns the list of forms instead of undefined

Describe alternatives you've considered
I can't test it as this is how that library implements the useForm hook.

Additional context
DOCS: https://developer.mozilla.org/en-US/docs/Web/API/Document/forms

@juandiegombr juandiegombr added the enhancement New feature or request label Feb 12, 2024
capricorn86 added a commit that referenced this issue Feb 25, 2024
#1260@minor: Implement document.forms getter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants