- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 08 Jun 2006 19:34:26 +0000
- To: www-validator-cvs@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3324 Summary: Anchor with name same as id of another element validates Product: Validator Version: HEAD Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: check AssignedTo: link@pobox.com ReportedBy: bth@grpmack.com QAContact: www-validator-cvs@w3.org There is an example of illegal HTML shown at: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3 It seems that for anchors, names and ids share a namespace, and so anchors must have unique names. The following is based on the given illegal example, and (erroneously?) validates. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head><title>Title</title></head> <body> <p><a href="#a1">foo</a></p> <h1 id="a1">foo<a name="a1"></a></h1> </body> </html>
Received on Thursday, 8 June 2006 19:34:34 UTC