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

Anne van Kesteren wrote:
> I was wondering if there was any chance I could convince implementors to 
> remove the magic list of attribute names whose values are matched again 
> in an ASCII case-insensitive way when the style sheet is associated with 
> an HTML document. The list mainly consists of obsolete presentational 
> attributes though every time we'd add a new attribute to HTML it would 
> have to be added here too (e.g. contenteditable, spellcheck, required, 
> etc.) and would have to be tested, et cetera, while there is no real 
> benefit for developers.
> 
> Also we allow other languages to be embedded in HTML documents these 
> days through the DOM and in the future MathML and SVG can be embedded 
> through syntax as well. This increases the chance that one of the ASCII 
> case-insensitive HTML attributes will clash with a case-sensitive 
> attribute there though the latter will still be matched in an ASCII 
> case-insensitive way.

I thought case-insensitivity of attributes was a language-wide feature
of HTML. Why are we using magic lists? (Also making attribute-matching
of HTML attributes case-sensitive would violate the Selectors spec.)

~fantasai

Received on Tuesday, 14 April 2009 00:30:31 UTC