<?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>5555</bug_id>
          
          <creation_ts>2008-03-10 18:13:40 +0000</creation_ts>
          <short_desc>Really invalid comment declaration?</short_desc>
          <delta_ts>2008-03-10 19:45:11 +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>check</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="Pavel Janda">pavel.janda</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <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>19394</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Janda">pavel.janda</who>
    <bug_when>2008-03-10 18:13:40 +0000</bug_when>
    <thetext>The source like this:

&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;!--
		
pocetpobocek--;
		
//--&gt;
&lt;/script&gt;

------------------------------
Returns those errors
------------------------------


Validation Output:  2 Errors

   1. Error Line 161, Column 16: invalid comment declaration: found character &quot;;&quot; outside comment but inside comment declaration.

      		pocetpobocek--;

      &amp;#9993;

      Check that you are using a proper syntax for your comments, e.g: &lt;!-- comment here --&gt;. This error may appear if you forget the last &quot;--&quot; to close one comment, and later open another.
   2. Info Line 159, Column 2: comment declaration started here.

      		&lt;!--

   3. Error Line 161, Column 14: XML Parsing Error: Comment not terminated .

      		pocetpobocek--;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19395</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-03-10 19:45:11 +0000</bug_when>
    <thetext>yes, really invalid. -- is a comment delimiter in XML.

Quick suggestion: avoid embedding javascript in xhtml - you&apos;re way better off using an external script file, for many reasons.


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>