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

Default URL when using Happy DOM as environment #3905

Closed
4 tasks done
capricorn86 opened this issue Aug 7, 2023 · 1 comment · Fixed by #3972
Closed
4 tasks done

Default URL when using Happy DOM as environment #3905

capricorn86 opened this issue Aug 7, 2023 · 1 comment · Fixed by #3972

Comments

@capricorn86
Copy link
Contributor

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

@capricorn86
Copy link
Contributor Author

Relates to #3903

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.