-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
HTMLElement.style
cannot be set directly
#628
Labels
bug
Something isn't working
Comments
jledentu
changed the title
Oct 19, 2022
HTMLElement.style
cannot be setHTMLElement.style
cannot be set directly
jledentu
added a commit
to jledentu/happy-dom
that referenced
this issue
Oct 20, 2022
jledentu
added a commit
to jledentu/happy-dom
that referenced
this issue
Oct 25, 2022
jledentu
added a commit
to jledentu/happy-dom
that referenced
this issue
Oct 25, 2022
capricorn86
added a commit
that referenced
this issue
Oct 25, 2022
#628@patch: Handle style setter in HTMLElement.
Thank you @jledentu for your contribution! 🙂 The fix has been released. You can read more about the release here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
HTMLElement.style
cannot be set, i.eelement.style = 'display: none'
doesn't work in happy-dom though it works in browsers (even if thestyle
property is readonly according to the spec).https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style#setting_styles
To Reproduce
Expected behavior
Device:
The text was updated successfully, but these errors were encountered: