W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Re: checklink: option to suppress msg

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 08 Oct 2002 01:10:31 +0200
To: "John Russell" <ve3ll@rac.ca>
Cc: <www-validator@w3.org>
Message-ID: <3da413bd.128960715@smtp.bjoern.hoehrmann.de>

* John Russell wrote:
>Can we have an option to suppress the empty/duplicate anchor table
>It causes a lot of scrolling in report --- even in summary view.
>And in many cases the errors are extraneous
><h2 id="topic5"><a name="topic5"></a>Topic 5 -- FooBar</h2>
>is a good example of defensive coding that is valid....

Actually this construct is not valid. Anchor names as defined by the id
and name attribute in this example must identify a unique element, hence
if you want to use both, the id and the name attribute, you must use
them for the same element (i.e., <a> in this example). The W3C HTML
Validator is unable to detect this error, but e.g. http://tidy.sf.net/
will complain:

  line 1 column 17 - Warning: <a> Anchor "topic5" already defined
Received on Monday, 7 October 2002 19:10:24 GMT

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