<?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>6747</bug_id>
          
          <creation_ts>2009-03-30 02:59:47 +0000</creation_ts>
          <short_desc>Direct input of HTML5 seems to validate anything</short_desc>
          <delta_ts>2015-08-23 07:07:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Anderson">eric</reporter>
          <assigned_to name="Ville Skyttä">ville.skytta</assigned_to>
          <cc>ville.skytta</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>24433</commentid>
    <comment_count>0</comment_count>
      <attachid>674</attachid>
    <who name="Eric Anderson">eric</who>
    <bug_when>2009-03-30 02:59:47 +0000</bug_when>
    <thetext>Created attachment 674
HTML5 doc that should not validate

When doing direct input of a HTML5 document the validator seems to return it being ok no matter what. Attached is a small test file that shows the problem. The &lt;body&gt; tags is purposely mistyped as &lt;bodly&gt;. If I upload this file then I get an error as expected. But if I copy and paste the text in the direct input then it says the document is ok even though it is not.

After a bit of testing I discovered that if I explicitly tell it that the content is HTML5 then it detects the problems fine. So it only seems to be a problem if the doctype is automatically detecting the doctype (even though it is automatically detecting HTML5 correctly).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27201</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-09-15 19:11:34 +0000</bug_when>
    <thetext>That&apos;s right; when not overriding doctype or charset, validator ended up passing a malformed Content-Type header to the HTML5 validator.  This should be fixed in http://www.w3.org/mid/E1MndLh-0001IU-EA%40lionel-hutz.w3.org , but it remains to be examined why this resulted in marking everything as valid (probably the HTML5 validator output was something the markup validator couldn&apos;t understand).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27203</commentid>
    <comment_count>2</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-09-15 19:26:49 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; it remains to be examined why this resulted in marking everything as valid
&gt; (probably the HTML5 validator output was something the markup validator
&gt; couldn&apos;t understand).

Indeed.  This should be fixed in http://www.w3.org/mid/E1Mnddq-0001uN-Gh%40lionel-hutz.w3.org
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32781</commentid>
    <comment_count>3</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2010-03-02 19:55:15 +0000</bug_when>
    <thetext>Fix is included in 0.8.6.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>674</attachid>
            <date>2009-03-30 02:59:47 +0000</date>
            <delta_ts>2009-03-30 02:59:47 +0000</delta_ts>
            <desc>HTML5 doc that should not validate</desc>
            <filename>bad.html</filename>
            <type>text/html</type>
            <size>196</size>
            <attacher name="Eric Anderson">eric</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9J2VuLVVTJz4KICA8aGVhZD4KICAgIDxtZXRhIGNv
bnRlbnQ9J3RleHQvaHRtbDsgY2hhcnNldD11dGYtOCcgaHR0cC1lcXVpdj0nQ29udGVudC1UeXBl
Jz4KICAgIDx0aXRsZT5UZXN0PC90aXRsZT4KICA8L2hlYWQ+CiAgPGJvZGlseT4KICAgIDxwPlRl
c3Q8L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>