W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: link check

From: Thanasis Kinias <tkinias@optimalco.com>
Date: Mon, 25 Jun 2001 08:46:15 -0700
To: Hugo Haas <hugo@w3.org>, Frank Ellermann <Frank.Ellermann@t-online.de>, Tim Bagot <tsb-w3-validator-0004@earth.li>
Cc: www-validator@w3.org
Message-id: <01062508461502.30532@localhost.localdomain>
On Monday 25 June 2001 05:42, Hugo Haas wrote:
> * Tim Bagot <tsb-w3-validator-0004@earth.li> [2001-06-23 16:57+0000]
> > At 2001-06-22T23:33-0400, Frank Ellermann wrote:-

[FE] 2: It doesn't like the #omitted in my link to
[FE] http://www.cs.tcd.ie/15445/UG.html#omitted ?!?

[TB] I think this is because of ``<A ID="OMITTED" NAME="omitted">'' in
[TB] that document. The values of the id and name attributes are 
[TB] case-sensitive, and must be identical if both are present; therefore 
[TB] the document is in error. I assume that the link checker uses the 
[TB] value of the id attribute if it exists, only using the name 
[TB] attribute if there is no id attribute.

[HH] The current version does not really do the right thing in case there
[HH] is both a name and an id attribute. In this case, the id attribute was
[HH] used. I have added that to the to-do list.

[HH] For reference purposes, [2] reads:

[HH]    The id and name attributes share the same name space. This means that
[HH]    they cannot both define an anchor with the same name in the same
[HH]    document. It is permissible to use both attributes to specify an
[HH]    element's unique identifier for the following elements: A, APPLET,
[HH]    FORM, FRAME, IFRAME, IMG, and MAP. When both attributes are used on a
[HH]    single element, their values must be identical.
[HH]

Hmm.  Is this something the validator (as opposed to the link checker) ought 
to be checking on?  I know it's not something that can be specified in the 
DTD, but it would be helpful if the validator would scream if you illegally 
set two different values for 'name' and 'id' on the same element.

Regards,
-- 
Thanasis Kinias
Vice President & Manager of Information Systems
Optimal LLC
Scottsdale, Arizona, USA
Received on Monday, 25 June 2001 11:46:05 GMT

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