Re: [css3-syntax] dash-match and includes-match tokens (was: Reviving the spec, starting with the parser)

Hi,

Both css21 and this new draft have special tokens for ~= and |=
As far as I know, they are only used as operators in attribute 
selectors. However, selectors3 already adds ^=, $= and *= to the list of 
operators. selectors4 or future levels could add more. Should the 
tokenizer change every time this happens?

Instead, I suggest to remove these tokens entirely. This means that most 
attribute selector operators would be made of two DELIM tokens. Selector 
parsers based on css3-syntax would have to look ahead to parse these 
operators. As an implementer, I think this is not a problem; but I don’t 
know the details of other implementations.

The benefit would be that we would not need to change the core syntax to 
add attribute selector operators, including those that already are in 
level 3.

Regards,
-- 
Simon Sapin

Received on Monday, 16 April 2012 12:18:57 UTC