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
{{ message }}
Repository navigation
className value not escaped when set using constructor #182
Maybe @chriseppstein would know if this is intended or not? Seems weird to me to have to set the value through mutation in order to get the escaping behavior.
The part I'm not sure about is that it seems very deliberate, you can see here that the escaping code is very intentionally only run if you are setting the value outside of the constructor:
Activity
alexander-akait commentedon Mar 4, 2019
Yep, looks like a bug in API, feel free to send a PR
adamwathan commentedon Mar 4, 2019
The part I'm not sure about is that it seems very deliberate, you can see here that the escaping code is very intentionally only run if you are setting the value outside of the constructor:
https://github.com/postcss/postcss-selector-parser/blob/master/src/selectors/className.js#L14
So would be nice to hear from @chriseppstein to better understand why it works this way.