You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the bug report and that you took some time to make a minimal repro.
It looks like this issue concerns jsdom, which is the DOM implementation Jest uses, rather than Jest itself, so please open an issue there :)
BTW your innerHTML has <div> instead of </div> at the end, which makes things a bit confusing because there's suddenly multiple divs.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
When creating a DOM element from a string (by setting innerHTML), an invalid property in style should be ignored, but it is not.
To Reproduce
Set invalid value for a property in the style attribute of an element:
Expected behavior
The style length of the child element (created in by setting innerHTML) should be 0:
Link to repl or repo (highly encouraged)
link to repo
The test "length of invalid style should be 0" should pass, but it fails.
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: