<?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>2880</bug_id>
          
          <creation_ts>2006-02-15 10:30:59 +0000</creation_ts>
          <short_desc>Incorrectly finds errors inside Javascript string constants</short_desc>
          <delta_ts>2006-02-15 11:45:41 +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>0.7.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Matt Daly">mdaly</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>8268</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Daly">mdaly</who>
    <bug_when>2006-02-15 10:30:59 +0000</bug_when>
    <thetext>If a web page contains JavaScript in which a string conatins Html like text, 
then errors can be incorrectly highlighted. Mainly seems to be strings shaped 
like closing tags which cause the error.
For exapmle, if you validate the Html listed below, the validator reports:
Error Line 7 column 43: end tag for element &quot;H2&quot; which is not open
But that tag is simply part of a string constant and is not html. Its certainly 
not invlaid.
I have done this both through file upload and direct input

here is the page to try:

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;title&gt;Test Validator&lt;/title&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;
var aStringVariable = &quot;&lt;h2&gt;just testing&lt;/h2&gt;&quot;;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
No content, just testing validator
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8272</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Daly">mdaly</who>
    <bug_when>2006-02-15 11:45:41 +0000</bug_when>
    <thetext>Sorry, found details excusing the problem in the faq. It still seems wrong to 
me though...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>