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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 13 Apr 2009 20:39:44 -0400
Message-ID: <49E3DB50.1050406@mit.edu>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style@w3.org
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 

Anne is talking about the latter.  Specifically, given [foo="bar"], how 
should the "bar" part be treated?

 > Why are we using magic lists?

Because some attributes in HTML4 have case-sensitive values, and some 
have case-insensitive ones.  @id falls into the former bucket, while 
@face on <font> falls into the latter.

You can see Gecko's magic list at 

> (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.

Received on Tuesday, 14 April 2009 00:40:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:35 UTC