Closed ninfaj closed 10 years ago
Well, your example doesn't escape the \
, so you're putting a literal 0x03
byte in that string, which is doing funny things.
But I'm not sure how this could possibly work anyway; :
marks the beginning of a pseudo-selector. Even as plain CSS, does any browser interpret this as you expect?
You might be able to get away with div[class~="width1:4"]
, but you'll have a much easier time if you just use a hyphen.
Thanks for your answer. The styling works if I insert div.width1\3A 4
as CSS.
Well the problem is, it's not me defining css classes like that, there are other packages, such as plone.app.theming
for example (https://github.com/plone/plone.app.theming/blob/master/src/plone/app/theming/browser/mapper.pt#L874)
I've just "solved" the problem by other selectors to get these elements.
Btw. this package is awesome! :smiley:
Hi there! It's not possible (or I didn't find out how) to define a CSS selector for elements with a
':' or '\3A' (CSS)
in the class (for example<div class="width1:4">test</div>
).This will return
But imho it should return
Is there a possibility to escape the
\
?