<?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>4904</bug_id>
          
          <creation_ts>2007-08-01 18:41:05 +0000</creation_ts>
          <short_desc>validator bug and inconsistent behavior with: &lt;div&gt;:1:&amp;nbsp;&lt;/div&gt;</short_desc>
          <delta_ts>2007-08-01 19:18:36 +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 2000</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4891</dup_id>
          
          <bug_file_loc>http://www.manuelmoser.de/stuff/validator/notvalid1.html</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="Manuel Moser">w3bugzilla</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>15998</commentid>
    <comment_count>0</comment_count>
    <who name="Manuel Moser">w3bugzilla</who>
    <bug_when>2007-08-01 18:41:05 +0000</bug_when>
    <thetext>I think we found a serious bug in the validator. According to my
understanding the following document is valid:

-------------------------------------------
http://www.manuelmoser.de/stuff/validator/notvalid1.html
-------------------------------------------
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;ltr&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;blah&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;:1:&amp;nbsp;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
-------------------------------------------

But the validator complains about the document with the following
message:

-------------------------------------------
Validation Output: 1 Error
 Line 1, Column 14: &amp;nbsp;&lt;/div&gt;.
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/x
-------------------------------------------


Some research has shown, that the line number seems to be very random
for this error (depending on the code). I even got an error in line 34
in an document with 18 lines of code. The third line mostly refers to
a random line, or to some tags after the line, where I see the
problem. This gave me some hints and I was able to reduce the problem
to this line: 

&lt;div&gt;:1:&amp;nbsp;&lt;/div&gt;

Important for the error seems to be the fact that there a two colon
and a number in between, followed by a &amp;nbsp;

Some examples:

Removing the number makes the document valid:

-------------------------------------------
http://www.manuelmoser.de/stuff/validator/valid1.html
-------------------------------------------
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;ltr&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;blah&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;::&amp;nbsp;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
-------------------------------------------

Changing the number to a letter makes the document valid:

-------------------------------------------
http://www.manuelmoser.de/stuff/validator/valid2.html
-------------------------------------------
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;ltr&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;blah&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;:a:&amp;nbsp;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
-------------------------------------------

Removing the &amp;nbsp; makes the document valid:

-------------------------------------------
http://www.manuelmoser.de/stuff/validator/valid3.html
-------------------------------------------
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;ltr&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;blah&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;:1:&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
-------------------------------------------

Manuel Moser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15999</commentid>
    <comment_count>1</comment_count>
    <who name="Manuel Moser">w3bugzilla</who>
    <bug_when>2007-08-01 18:49:04 +0000</bug_when>
    <thetext>I&apos;m sorry, I didn&apos;t see bug 4891. This here might be the same bug as 4891.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16001</commentid>
    <comment_count>2</comment_count>
    <who name="Manuel Moser">w3bugzilla</who>
    <bug_when>2007-08-01 19:18:36 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 4891 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>