- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Thu, 22 May 2003 23:21:07 +0300 (EEST)
- To: www-validator@w3.org
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 UTC