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

Re: Selectors: section 6.5: Error

From: Adam Kuehn <akuehn@nc.rr.com>
Date: Thu, 29 Dec 2005 10:55:07 -0500
Message-Id: <>
To: Elliotte Harold <elharo@metalab.unc.edu>, www-style@w3.org

Elliotte Harold wrote:
>Attributes of type ID can and do have the same value. A document in 
>which this occurs would be invalid; but such documents do exist, are 
>well-formed, and can be usefully processed.
>I suggest two things:
>1. Weaken the first paragraph to make it clear that there is no 
>guarantee that IDs are unique, even if they're supposed to be.
>2. Specify what happens when multiple elements share the same ID. I 
>would prefer the style rule to be applied to both such elements. 
>However, you could logically choose it to apply to only the first. I 
>would prefer this behavior not to be undefined.

I strongly disagree.  This would simply encourage authors to abuse 
IDs and use them as classes.  Unpredictable error behavior encourages 
authors not to make errors.

-Adam Kuehn 
Received on Thursday, 29 December 2005 15:55:23 UTC

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