less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

Can't parse IDs with colons

Open jeremyh opened this issue 16 years ago • 2 comments

Apps written using Java's JSF are littered with HTML elements with colons in the ID, eg:

<input type="text" class="text" id="agreementForm:price:priceField1"/>

To select these with CSS you can backslash the colon, like this:

agreementForm\:price\:priceField1 { ... }

... But it doesn't work in IE. So you have to escape the colon as a hex code:

agreementForm\3a price\3a priceField1 { ... }

This works in all browsers, however Less doesn't recognise this syntax.

jeremyh avatar Jul 08 '09 03:07 jeremyh

I just noticed you commited a large rewrite to master an hour ago. I haven't tested this with the new version yet.

jeremyh avatar Jul 08 '09 03:07 jeremyh

yea, I rewrote less from the ground-up using the treetop parsing library. This is definitely not going to work with the current code base though.

cloudhead avatar Jul 09 '09 07:07 cloudhead