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

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 14 Feb 2005 13:53:58 +0000 (UTC)
To: Laurens Holst <lholst@students.cs.uu.nl>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.61.0502141352080.11485@dhalsim.dreamhost.com>

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.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 14 February 2005 13:54:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:35 GMT