Re: validator bug

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

Received on Thursday, 22 May 2003 17:56:27 UTC