<?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>3648</bug_id>
          
          <creation_ts>2006-09-01 18:00:51 +0000</creation_ts>
          <short_desc>The - -) is interpreted as - -&gt; in javascript and breaks check</short_desc>
          <delta_ts>2006-09-04 01:04:28 +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>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ing. Philippe Thomassigny">phil</reporter>
          <assigned_to name="Terje Bless">link</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>11355</commentid>
    <comment_count>0</comment_count>
    <who name="Ing. Philippe Thomassigny">phil</who>
    <bug_when>2006-09-01 18:00:51 +0000</bug_when>
    <thetext>here is a *very* simple example showing the bug.
It happens on XHTML 1.0 transitional, i did not tried on other versions.
the --) into the javascript is interpreted as the end tag for comment instead of --&gt; really at the end of the javascript, which break any html page that contains a &quot;--&quot; operator followed by a &quot;)&quot;

Thanks

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Some title&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
for(i = to_fill.options.length; i &gt;= 0; i--)
  alert(i);
// --&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11363</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-09-04 01:04:28 +0000</bug_when>
    <thetext>http://www.w3.org/TR/xhtml1/#C_4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>