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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT