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

Re: validator bug

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 22 May 2003 23:21:07 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.50.0305222316110.8341-100000@korppi.cs.tut.fi>

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 http://www.cs.tut.fi/~jkorpela/html/validation.html

> <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, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 22 May 2003 16:21:12 GMT

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