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

Re: [css21][css3-selectors] case-insensitive attribute values

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 13 Apr 2009 23:26:54 -0700
Message-ID: <49E42CAE.5050302@inkedblade.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style@w3.org
Boris Zbarsky wrote:
> fantasai wrote:
>> I thought case-insensitivity of attributes was a language-wide feature
>> of HTML.
> 
> Of attribute names, yes.
> 
> Of attribute values, not at all.  See 
> http://www.w3.org/TR/html401/types.html#h-6.1
> 
> Anne is talking about the latter.  Specifically, given [foo="bar"], how 
> should the "bar" part be treated?

Ahhh, now it all makes sense. :)

>> (Also making attribute-matching
>> of HTML attributes case-sensitive would violate the Selectors spec.)
> 
> How, exactly?  The relevant part of Selectors says this:
> 
>   The case-sensitivity of attribute names and values in selectors
>   depends on the document language.
> 
> on the matter.

And said document language says they're case-insensitive.

~fantasai
Received on Tuesday, 14 April 2009 06:27:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT