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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 25 Jul 2011 11:17:11 -0700
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
Message-ID: <20110725181711.GA22625@pickering.dbaron.org>
On Monday 2011-07-25 10:03 -0700, fantasai wrote:
> On 07/24/2011 03:05 PM, Anne van Kesteren wrote:
> >Hi,
> >
> >For user agent style sheets HTML now has a number of "/* case-insensitive */" annotations in its rendering section indicating
> >the attribute value needs to be matched ASCII case-insensitively (so no Turkish dotloss i business). This is because these
> >attribute values need to be matched ASCII case-insensitively in HTML and XML.
> >
> >Authors might want that ability too in case they write CSS against "unknown" markup.
> >
> >Unfortunately I have no good idea for syntax. Only crappy ideas:
> >
> >[att=/val/i]
> >
> >[att=val flag]
> >
> >[att=ascii-case-insensitive(val)]
> 
> Added
>   http://dev.w3.org/csswg/selectors4/#attribute-case

I think putting the "i" outside of the [] is confusing -- it doesn't
*look* associated with the attribute selector.

I'd much rather see [att=val i] / [att="val" i] or
[att=val,i] / [att="val",i] or some other syntax that puts the
case-insensitive indicator *inside* the brackets.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla Corporation               http://www.mozilla.com/   𝄂
Received on Monday, 25 July 2011 18:17:51 GMT

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