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
Describe the bug
If CSS comment contains * character in the middle, the comment is not omitted and ends up being parsed as part of selectorText.
This, of course, makes selectorText invalid for later use.
To Reproduce
Steps to reproduce the behavior:
Add following CSS:
/** Some comment here */
.foo { color: red; }
Run happy-dom (well, running vitest with happy-dom)
Describe the bug
If CSS comment contains
*
character in the middle, the comment is not omitted and ends up being parsed as part of selectorText.This, of course, makes selectorText invalid for later use.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
CSS is parsed correctly and commit is omitted.
** Analysis **
It's just a problem with CSSParser regex used for comments.
I have a test and a fix for CssParser ready and fill submit PR soon.
The text was updated successfully, but these errors were encountered: