W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] [html5] r4949 - [giow] (0) The CSS rules need to do attribute value matching consistently across [...]

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Wed, 25 Aug 2010 09:44:34 +0200
Message-ID: <85E9BCF2-2F1B-4FE9-96F5-7A4CE3E56D26@crissov.de>
Anne van Kesteren:
> On Wed, 25 Aug 2010 01:00:50 +0200, Ian Hickson <ian at hixie.ch> wrote:
>> I'm sure people do: <P ALIGN=CENTER> ... </P>
> Sure, but I highly doubt people do that and expect
>  p[align=center]
> to work, especially since that has not always worked in all browsers.

I for one would expect that selector to match that element, although I would never write HTML like that. Imagine a browser or user stylesheet where you would effectively have to list all possible casings.

That is, I expect attribute values that are predefined keywords to match no matter how I case them, because they are semantic ? well, ?center? not so much ?, but arbitrary strings should be case-insensitive unless specified otherwise (which is not possible in Selectors 3).

> I still think matching on attribute values in Selectors for HTML should always be case-sensitive and we should not have a magic list.

How about ?[align="center"]? being case-sensitive and ?[align=center]? being case-agnostic? ;)
Received on Wednesday, 25 August 2010 00:44:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:26 UTC