W3C home > Mailing lists > Public > www-style@w3.org > April 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Mon, 16 Apr 2012 14:18:25 +0200
Message-ID: <4F8C0E11.4080203@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT