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 844 - <a /> should not pass as valid.
Summary: <a /> should not pass as valid.
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.7.0
Hardware: Other other
: P3 minor
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 11:13 UTC by Lance
Modified: 2004-08-23 17:34 UTC (History)
0 users

See Also:


Attachments

Description Lance 2004-08-23 11:13:26 UTC
The HTML Validator is incorrectly accepting:

<a id="EEKaBug" />

As a properly formatted and closed <a> tag.
Comment 1 David Dorward 2004-08-23 11:44:24 UTC
This is valid in XHTML. It does not conform to Appendix C, but that is not covered by validation.
Comment 2 Lance 2004-08-23 12:59:33 UTC
Doesn't this contradict:

http://www.w3.org/TR/2002/REC-xhtml1-20020801/

Section 4.3
...All elements other than those declared in the DTD as EMPTY must have an end 
tag.
Comment 3 David Dorward 2004-08-23 13:34:39 UTC
That section of the specification is informative, not normative. On the hand
hand, the XML specification states:

     Empty-element tags MAY be used for any element
     which has no content, whether or not it is
     declared using the keyword EMPTY.

http://www.w3.org/TR/2004/REC-xml-20040204/#dt-content