W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [Selectors4] case-insensitive attribute value matching (in XML)

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Mon, 25 Jul 2011 12:32:35 -0700
Message-ID: <4E2DC4D3.9090409@disruptive-innovations.com>
To: www-style@w3.org
Le 25/07/11 10:03, fantasai a écrit :

> Added
> http://dev.w3.org/csswg/selectors4/#attribute-case
>
> Let me know if you have any suggestions for making it better. :)


To be honest, I find the solution ugly... Not your fault, our
fault, collectively. It's painful to read and could be a problem
for server-side processors generating CSS attribute selectors from
the contents of variables (eg [foo=$bla " - " $bar] )

We should have used the following from the very beginning:

'[' S* attrname S*
     [ [ 'case-sensitive' | 'case-insensitive' ] S* ]?
     [ 'contains(' | 'starts-with(' | 'ends-with(' | 'equals(' ]
     S*
     [ string | ident]
     S* ')'
     S*
']'

Sigh. Not sure we should not consider the above as a potential
simplification to implement...

</Daniel>
Received on Monday, 25 July 2011 19:33:09 GMT

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