-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
scrollWidth is undefined in document.documentElement #1109
Labels
bug
Something isn't working
Comments
wojtekmaj
added a commit
to wojtekmaj/happy-dom
that referenced
this issue
Oct 3, 2023
wojtekmaj
added a commit
to wojtekmaj/happy-dom
that referenced
this issue
Oct 3, 2023
capricorn86
added a commit
that referenced
this issue
Oct 3, 2023
capricorn86
added a commit
that referenced
this issue
Oct 3, 2023
…defined-in-documentdocumentelement #1109@minor: Adds support for Element.scrollWidth.
Thank you for reporting @wojtekmaj! 🙂 There is a fix in now. You can read more about the release here: |
Thank you for creating a fix PR as well ⭐ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
scrollWidth
isundefined
indocument.documentElement
. Oddly enough,scrollHeight
is set just fine.To Reproduce
https://npm.runkit.com/happy-dom
Expected behavior
scrollWidth
to be defined and set to 0 just likescrollHeight
is.Additional context
Commit with tests failing after replacing JSDom with Happy DOM:
wojtekmaj/react-hooks@bde9864
The text was updated successfully, but these errors were encountered: