Re: IDs *not* in selectors

On Thu, 08 Jul 1999 16:14:33 GMT, (Sue Sims) wrote:
> So we may infer that #123myid is perfectly legal whilst P#123myid is
> not?  If that was the intent, may I request a synthesis of the
> rationale?

Both are perfectly legal CSS, as Peter explained.  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.



Received on Thursday, 8 July 1999 13:32:40 UTC