We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
URL will auto add question mark when you set the search value, which is
search
const url = new URL('https://www.google.com'); url.search = 'a=1' console.log(url.toString()) // https://www.google.com/?a=1
but in happy-dom environment, the ? symbol missed,the actual value is https://www.google.com/a=1
?
https://www.google.com/a=1
To Reproduce
I'm using vitest w/ happy-dom
clone https://github.com/HomyeeKing/vitest-repo to reproduce
Device:
The text was updated successfully, but these errors were encountered:
Duplicate of #401 and more.
We fixed in #520.
Sorry, something went wrong.
Thanks for reporting @quantuminformation! 🙂
We have now fixed this by using the native url module.
url
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v7.8.0
No branches or pull requests
Describe the bug
URL will auto add question mark when you set the
search
value, which isbut in happy-dom environment, the
?
symbol missed,the actual value ishttps://www.google.com/a=1
To Reproduce
I'm using vitest w/ happy-dom
clone https://github.com/HomyeeKing/vitest-repo to reproduce
Device:
The text was updated successfully, but these errors were encountered: