Re: [css-syntax] <an+b> grammar: escaping

Another "interesting" corner case:

In some cases, a minus sign is part of an <ident> token. But once 
tokenization is done, we don’t know anymore if that character was 
escaped in the CSS source. This is a similar issue to that of the syntax 
of ID selectors.

So, what exactly do we want to allow to be escaped or not? Selectors 3 
uses {N} and ['-'|'+'], which means that n can be escaped but not a plus 
or minus sign.

-- 
Simon Sapin

Received on Tuesday, 28 May 2013 02:55:37 UTC