W3C home > Mailing lists > Public > www-validator@w3.org > May 2003

Re: validator bug

From: Nick Kew <nick@webthing.com>
Date: Thu, 22 May 2003 22:56:21 +0100 (BST)
To: <jeff.holt@hotsos.co>
Cc: <www-validator@w3.org>
Message-ID: <20030522224906.I963-100000@fenris.webthing.com>

On Thu, 22 May 2003, Jukka K. Korpela wrote:

> > <a name="1">here</a>
> > <a name="1">there</a>
> That's incorrect (since it violates a requirement in the HTML
> specification) but valid (since it does not violate anything in the DTD or
> in general SGML rules).

Indeed, this is the schizophrenic nature of the name attribute,
which is a leftover from pre-W3C times.

In the above instance, it is serving the role of an ID attribute,
and is retained only for back-compatibility.  The other - and
altogether more appropriate - role of "name", is in Form controls,
where duplication of names is entirely legitimate.

Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Received on Thursday, 22 May 2003 17:56:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:34 UTC