<?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>6252</bug_id>
          
          <creation_ts>2008-11-27 19:00:46 +0000</creation_ts>
          <short_desc>Un-enclosed &amp;lt;IMG&amp;gt; tag not detected on direct input</short_desc>
          <delta_ts>2008-12-08 18:09:12 +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>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="Chris Winter">cpwinter</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>ot</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>22546</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Winter">cpwinter</who>
    <bug_when>2008-11-27 19:00:46 +0000</bug_when>
    <thetext>Recently I began validating HTML 4.0 Strict pages by direct input, as opposed to uploading them and then checking by URI.

Several files were passed as clean on direct input. But the same files, once installed on my Web site, failed validation by URI with a single error: &amp;lt;IMG&amp;gt; tag not enclosed in a block element.

The actual error message is: &quot;document type does not allow element &quot;IMG&quot; here; missing one of &quot;P&quot;, &quot;H1&quot;, &quot;H2&quot;, &quot;H3&quot;, &quot;H4&quot;, &quot;H5&quot;, &quot;H6&quot;, &quot;DIV&quot;, &quot;ADDRESS&quot; start-tag.&quot;

It seems to me that this is the sort of error that should be picked up by the validator no matter which input method is used.

Searching did not disclose any previous instance of this bug.

I&apos;ve since fixed the problem in the on-line files. If you need a test case, let me know and I&apos;ll re-create it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22547</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-11-27 19:04:50 +0000</bug_when>
    <thetext>A test case would be welcome indeed.

Thank you!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22682</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-12-04 16:19:55 +0000</bug_when>
    <thetext>[after receiving a test case by private mail]

passing this page directly to the validator and passing it by copy-pasting the source into the &quot;direct input&quot; validation gives me exactly the same result. 

I&apos;m suspecting the source code you sent to the validator by &quot;direct input&quot; and &quot;by URI&quot; may have been different. Use the &quot;view source&quot; option of the validator to see what the difference may be.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22709</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Winter">cpwinter</who>
    <bug_when>2008-12-08 18:09:12 +0000</bug_when>
    <thetext>I found the same thing when I tried my test case -- that is, direct input gave the same error as check by URI. I guess this bug is invalid.

But it is puzzling, because the problem arose when I found several other errors in the original HTML file by direct input, fixed those, got it to validate, uploaded it, and then saw the error message I reported here.

Ah, I see I can invalidate the bug myself. I&apos;ll do that thing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>