W3C home > Mailing lists > Public > www-style@w3.org > January 2006

Re: Selectors: section 6.5: Error

From: David Woolley <david@djwhome.demon.co.uk>
Date: Mon, 2 Jan 2006 10:56:56 +0000 (GMT)
Message-Id: <200601021056.k02AuuL00595@djwhome.demon.co.uk>
To: www-style@w3.org

> 2. Specify what happens when multiple elements share the same ID. I 
> would prefer the style rule to be applied to both such elements. 

Whilst I would prefer a world in which specifications could use 
"don't care" rules, my vote, amongst the two options here, would be to
only honour the first one, as honouring all occurences makes ID selectors 
indistinguishable from class selectors, except for the namespace, and
given that elements can be in multiple classes, that wouldn't be
very useful.  Honouring just the first ought to be easy to enforce
even if the matching mechanism naturally finds all matches, as the
ID can be modified in the DOM, so as not to match for this purpose.

The reality though, is that I suspect that any move to defined behaviour
will be based on what the majority of browsers already do in this
case.
Received on Monday, 2 January 2006 13:19:43 GMT

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