W3C home > Mailing lists > Public > www-html@w3.org > January 2002

Re: id attribute in HTML 4.01 (fwd)

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Fri, 25 Jan 2002 14:44:06 +0900 (JST)
Message-Id: <20020125.144406.74752476.mimasa@w3.org>
To: www-html@w3.org
"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:


Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Friday, 25 January 2002 00:44:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:58 UTC