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

Re: [Selectors] What if an element is declared as type ID

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sat, 04 Dec 2004 00:51:50 +0100
Message-ID: <41B0FC16.6050400@annevankesteren.nl>
To: Robin Berjon <robin.berjon@expway.fr>
CC: W3C CSS List <www-style@w3.org>

Robin Berjon wrote:
> Anne van Kesteren wrote:
>> Both the CSS 2.1 CR specification and the Selectors CR specification 
>> speak of ID *attributes*[1].
>> Recently, after reading some material on XML Schema I discovered that 
>> elements could be declared as type ID as well[2].
>> It does say something about compatibility, but it does permit you to 
>> use it on an element.
>> So I was wondering how that would work together with CSS.
> The semantics of having an element of type ID are fuzzy at best (does 
> the ID map to the element of that type, or to its parent?), and the fact 
> that it's possible to have those in some schema languages could be 
> called a bug. If CSS is to say anything about this, it should be to 
> forbid it.

It should probably do that. Although it only speaks about attributes 
now, it might be better if it's said more explicit so there can be no 

  Anne van Kesteren
Received on Friday, 3 December 2004 23:52:04 GMT

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