Re: id attribute in HTML 4.01 (fwd)

"Russell O'Connor" <roconnor@Math.Berkeley.EDU> wrote:

> On Fri, 25 Jan 2002, Masayasu Ishikawa wrote:
> 
> > See section 12.2.1 "Syntax of anchor names", at:
> >
> >     http://www.w3.org/TR/html401/struct/links.html#h-12.2.1
> 
> This seems is inconsistant with the SGML declaration used.

This is due to historical reason that the 'name' attribute was used
for anchors, and 'name' is of type CDATA, which is case-sensitive.
HTML 4 allowed the 'id' attribute (which is case-insensitive) as
an another way to create an anchor and defined that the 'id' and
'name' attributes share the same name space.  Section 12.2.1 was
written in order to cope with this obvious contradiction.

You might want to look at the relevant thread on the www-validator
mailing list, starting from:

    http://lists.w3.org/Archives/Public/www-validator/2001Jul/0046

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Friday, 25 January 2002 00:44:14 UTC