Css-loader: Escaped characters in CSS content are not respected

Created on 3 Sep 2015  路  12Comments  路  Source: webpack-contrib/css-loader

Even though this was listed in #87 and supposedly fixed by https://github.com/css-modules/css-selector-tokenizer/commit/5aa6180c27e1444d4f9601ec5f7ad6b3e894b587, I'm still having this issue.

content: "\A"; is compiled to content: "A";, so the \ character isn't being parsed correctly...

Most helpful comment

All 12 comments

@andreypopp @JackVCurtis @mathieumg are any of you still able to reproduce this issue?

I have no idea why this worked but putting content: '\"\A'; fixed it. It outputs as content: '\"\A'; but somehow still renders as a line break. I'm sure this will break soon...

Ok, nevermind, that does NOT work.

content: '\0000a0'; is being converted to content: 'A 0';. Downgrading to v0.14.5 fixes the issue for me.

Any word on this? I hate keeping this lib at v0.14.5.

@chandlervdw my workaround was to alter content value to work with v0.14.5+

image

@robmcguinness I'm trying to achieve an end value of \A ... can you advise me on what I should change my content value to?

@chandlervdw I haven't dug into the code in a while but if I get a minute i'll take a peek

+1

hi guys, encountering same issue, any tweak i should do to make it work for now?

Added a PR to bump thecss-selector-tokenizer version to 0.6.0.

Was this page helpful?
0 / 5 - 0 ratings