Re: validator bug

On Thu, 22 May 2003, Jeff Holt wrote:

> The validator incorrectly claims that the following HTML is valid.

No, the HTML markup is valid, though incorrect. If you are confused with
this statement, see

> <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).

> If I use the ID attribute instead of the NAME attribute, then the
> validator correctly identifies the duplicate anchor definitions.

Indeed. That's because ID attributes are declared as having ID value,
which implies special rules in SGML: it _syntactically_ enforces the
uniqueness requirement.

Jukka "Yucca" Korpela,

Received on Thursday, 22 May 2003 16:21:12 UTC