W3C home > Mailing lists > Public > www-style@w3.org > February 2005

Re: [css21] multiple ID attributes with the same value

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Mon, 14 Feb 2005 16:20:40 +0000
Message-ID: <4210CFD8.4060005@Rhul.Ac.Uk>
To: Ian Hickson <ian@hixie.ch>
CC: Laurens Holst <lholst@students.cs.uu.nl>, www-style@w3.org

Ian Hickson wrote:

> On Mon, 14 Feb 2005, Laurens Holst wrote:
>>>Both elements have the ID "xyz", so both should match "#xyz".
>>Doesn't that behaviour allow for misuse?
> Yes. So does the "class" attribute.
>>If Anne's suggestion is followed, authors would not be able to use ID's 
>>as class attributes. If this works as you suggested in actual 
>>implementations, even though invalid, people are going to (unknowingly) 
>>misuse it.
> It is _much_ _much_ more common for people to abuse the "class" attribute 
> than the "id" attribute. In fact abuse of "id" is rare.

Maybe.  But it exists :


How does one abuse a "class" attribute, btw ?

Philip Taylor
Received on Monday, 14 February 2005 16:23:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC