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

Ian Hickson wrote:
> Oh, I see. IMHO that would be bad, and is not what is implemented
> either.

I should be tested and not trusted my memory. That is indeed what is
implemented in at least Mozilla, Opera and Internet Explorer.

(Perhaps that is the reason people sometimes use ID when they need CLASS...)


> Both elements have the ID "xyz", so both should match "#xyz".

Perhaps the specification should state that?

Personally I still think it might make sense to make it invalid in CSS,
although I see that it would have not much impact since most browsers
already support it.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Monday, 14 February 2005 12:53:41 UTC