<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4923</bug_id>
          
          <creation_ts>2007-08-08 20:22:22 +0000</creation_ts>
          <short_desc>Long single-tag comments fail to validate</short_desc>
          <delta_ts>2007-08-08 22:43:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Terry Roddy">TerryRoddy</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>TerryRoddy</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16087</commentid>
    <comment_count>0</comment_count>
    <who name="Terry Roddy">TerryRoddy</who>
    <bug_when>2007-08-08 20:22:22 +0000</bug_when>
    <thetext>&lt;!----&gt; is accepted as a valid comment, but anything longer is not.
Thus, the following throws several errors on the comment-line:

&lt;!DOCTYPE
 HTML
 PUBLIC
 &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
 &quot;http://www.w3.org/TR/html4/loose.dtd&quot;
&gt;

&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;!---------------------------------------------------------&gt;
  &lt;/body&gt;
&lt;/html&gt;

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

&lt;!DOCTYPE
 HTML
 PUBLIC
 &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
 &quot;http://www.w3.org/TR/html4/loose.dtd&quot;
&gt;

&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;!-- +----------------------------+------+----------------------------+ --&gt;
  &lt;!-- |============================| BODY |============================| --&gt;
  &lt;!-- +----------------------------+------+----------------------------+ --&gt;
  &lt;body&gt;
    Hello, World!
  &lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16088</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-08-08 22:43:35 +0000</bug_when>
    <thetext>That&apos;s not a bug:
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
http://htmlhelp.com/reference/wilbur/misc/comment.html
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>