This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8420 - name attribute with A in XHTML 1.1
Summary: name attribute with A in XHTML 1.1
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2009-12-02 12:56 UTC by Jonathan
Modified: 2009-12-02 18:01 UTC (History)
0 users

See Also:

xhtml page with reported error. (3.60 KB, text/html)
2009-12-02 12:56 UTC, Jonathan

Description Jonathan 2009-12-02 12:56:04 UTC
Created attachment 786 [details]
xhtml page with reported error.

I was attempting to use a <a name="name"></a> tag in a strict XHTML 1.1 document and the validator was telling me I couldn't - 'Attribute "name" exists, but can not be used for this element.'. I now know that that's because you're supposed to use ID instead of name with XHTML. Fine.

However, I had many '<a name="xyz">' tags scattered around my document, but the validator only reported an error for the first one. This is a problem because it implies the rest are fine and I spend 5-10 mins wondering why that first one was bad but the rest were good.
See attached - it has three '<a name' tags, but only the first is ever reported.
Comment 1 Ville Skyttä 2009-12-02 18:01:50 UTC
The validator intentionally tells the underlying parser to suppress "duplicate" errors, in an attempt to be more helpful.

Arguments can be made both ways and FWIW I don't personally have a strong opinion either way, but because this is the intended behavior at the moment (and has been for a long time), it's not currently a bug but a feature and thus I'm closing this issue here.  I suggest discussing this further on the www-validator mailing list in case you feel strongly that the current behavior should change.