W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2005

[Bug 1784] Send warning for duplicated name attribute value

From: <bugzilla@wiggum.w3.org>
Date: Wed, 20 Jul 2005 04:37:57 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Dv6LF-0005nW-Vs@wiggum.w3.org>


ot@w3.org changed:

           What    |Removed                     |Added
           Severity|normal                      |enhancement
         OS/Version|Windows XP                  |All
           Priority|P2                          |P4
           Platform|PC                          |All
            Summary|Duplicated anchor name      |Send warning for duplicated
                   |                            |name attribute value

------- Additional Comments From ot@w3.org  2005-07-20 04:37 -------
(In reply to comment #0)
> Duplicated use of an anchor name cannot be detected.
> For example, it passes the HTML code below:
> <a name="top">Anchor 1</a>
> <a name="top">Anchor 2</a>

the "name" attribute is of type name, which means that unlike the "id" attribute, the name attribute has 
no constraint of uniqueness. As a result, the above is valid, and the validator parses it as such.

In an attempt at usefulness, one could imagine that the validator could throw a warning when detecting 
a duplicate name attribute. I am changing the bug title to show this idea, and marking it as 
enhancement request.

Note that in XHTML, the name attribute is deprecated.

 The HTML compatibility guidelines recommend to use name="foo" id="foo". This recommendation is 
also a good idea for HTML4.
Received on Wednesday, 20 July 2005 04:38:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:21 UTC