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
Default URL when using Happy DOM as environment #3905
Comments
Relates to #3903 |
capricorn86
added a commit
to capricorn86/vitest
that referenced
this issue
Aug 7, 2023
6 tasks
capricorn86
added a commit
to capricorn86/vitest
that referenced
this issue
Aug 7, 2023
capricorn86
pushed a commit
to capricorn86/vitest
that referenced
this issue
Aug 7, 2023
capricorn86
pushed a commit
to capricorn86/vitest
that referenced
this issue
Aug 7, 2023
This was referenced Aug 7, 2023
6 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Clear and concise description of the problem
Happy DOM and JSDOM both default the URL to "about:blank". For the JSDOM environment the URL is set to "http://localhost:3000", while when using Happy DOM it has not been set to any default value.
This is causing issues when constructing relative URLs (see capricorn86/happy-dom#868).
Suggested solution
My suggestion is to default the Happy DOM URL to the same URL as JSDOM (which is "http://localhost:3000").
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: