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
Another minor issue is that, round braces and many other invalid-but-escapable selectors remain unchanged when using toString(). Perhaps we could somehow ensure that the returned selector of toString() method is always valid?
I'm trying to parse a fairly large CSS spritesheet that has a lot of these characters, so fixing this would be of huge help!
Another suggestion that may or may not be relevant to this repository is, using a CSS escaping module. Mathias has made one in cssesc and it addresses both cases mentioned above, for example here and here.
The text was updated successfully, but these errors were encountered:
Using the online demo, I'm getting this error in browser console when trying to parse a rule with special characters escaped:
which is equivalent to this block:
CSSOM/lib/parse.js
Lines 106 to 113 in 64dfbde
Another minor issue is that, round braces and many other invalid-but-escapable selectors remain unchanged when using
toString()
. Perhaps we could somehow ensure that the returned selector oftoString()
method is always valid?I'm trying to parse a fairly large CSS spritesheet that has a lot of these characters, so fixing this would be of huge help!
Another suggestion that may or may not be relevant to this repository is, using a CSS escaping module. Mathias has made one in cssesc and it addresses both cases mentioned above, for example here and here.
The text was updated successfully, but these errors were encountered: