Re: Selectors: section 6.5: Error

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