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

document.referrer should be a string #653

Closed
cloud-walker opened this issue Nov 10, 2022 · 1 comment · Fixed by #1076
Closed

document.referrer should be a string #653

cloud-walker opened this issue Nov 10, 2022 · 1 comment · Fixed by #1076
Assignees
Labels
bug Something isn't working

Comments

@cloud-walker
Copy link

Describe the bug
document.referrer, should be a present by specification (an empty string by default I guess)

To Reproduce
Steps to reproduce the behavior:
https://stackblitz.com/edit/vitest-dev-vitest-xbr6ap?file=test/happydom.test.ts

Expected behavior
https://stackblitz.com/edit/vitest-dev-vitest-xbr6ap?file=test/jsdom.test.ts

@cloud-walker cloud-walker added the bug Something isn't working label Nov 10, 2022
@capricorn86 capricorn86 self-assigned this Sep 18, 2023
@capricorn86 capricorn86 linked a pull request Sep 18, 2023 that will close this issue
capricorn86 added a commit that referenced this issue Sep 18, 2023
…hould-be-a-string

#653@patch: Adds support for Document.referrer.
@capricorn86
Copy link
Owner

Thank you for reporting @cloud-walker! 🙂

Sorry for taking such a long time before answering this.

There is a fix for it now.

You can read more about the release here:
https://github.com/capricorn86/happy-dom/releases/tag/v12.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants