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 4923 - Long single-tag comments fail to validate
Summary: Long single-tag comments fail to validate
Status: RESOLVED INVALID
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 20:22 UTC by Terry Roddy
Modified: 2007-08-08 22:43 UTC (History)
1 user (show)

See Also:


Attachments

Description Terry Roddy 2007-08-08 20:22:22 UTC
<!----> is accepted as a valid comment, but anything longer is not.
Thus, the following throws several errors on the comment-line:

<!DOCTYPE
 HTML
 PUBLIC
 "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd"
>

<html>
  <head>
    <title>Test</title>
  </head>
  
  <body>
    <!--------------------------------------------------------->
  </body>
</html>

This also holds true if the comment-endpoints are space-delimited:

<!DOCTYPE
 HTML
 PUBLIC
 "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd"
>

<html>
  <head>
    <title>Test</title>
  </head>
  
  <!-- +----------------------------+------+----------------------------+ -->
  <!-- |============================| BODY |============================| -->
  <!-- +----------------------------+------+----------------------------+ -->
  <body>
    Hello, World!
  </body>
</html>