W3C home > Mailing lists > Public > www-style@w3.org > July 1999

Re: IDs *not* in selectors

From: Sue Sims <sue@css.nu>
Date: Thu, 08 Jul 1999 19:54:53 GMT
To: www-style@w3.org
Message-ID: <3785f5ea.3905480@mailhost.worldnet.att.net>
 
>>...id selectors 

>Both are perfectly legal CSS, as Peter explained.  

Appendix D is not written in my native language, and I admit to a
problem understanding it, even when 'optimized for human consumption'.

>However, such
>selectors cannot match anything in a legal HTML document, since ID
>attributes in HTML must begin with a letter [1].  However, since HTML
>does not define error-handling rules, I think it's really up to the
>user-agent whether to allow this or not.

When HTML has a normative definition for ID and name tokens (1), why
would CSS deliberately introduce this conflict with that definition? I'd
also posit that UAs decision(s) on whether to 'allow' this might well be
divergent, thereby introducing yet another layer^Wstratum of confusion
amongst authors. This issue has been discussed previously, and I'd
thought it was settled. (2)

Sue Sims

[1] http://www.w3.org/TR/REC-html40/types.html#type-name
(2) http://lists.w3.org/Archives/Public/www-style/1998May/0066.html
    http://lists.w3.org/Archives/Public/www-style/1998Apr/0049.html
Received on Thursday, 8 July 1999 15:55:17 GMT

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