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

fix: skip onchange callback if serialized value did not change #147

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

just-boris
Copy link
Contributor

@just-boris just-boris commented Dec 12, 2021

fixes jsdom/jsdom#3305

According to the spec, setting a css declaration "must return true if the serialization of declarations was changed as result of the steps. It may return false otherwise". This information is used when calling setProperty, "if updated is true, update style attribute for the CSS declaration block."

At the same time for cssText property, there are no conditions for setting the new value

@domenic domenic merged commit 1f5940b into jsdom:main Dec 28, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MutationObserver triggers changes on unchanged inline styles
2 participants