<?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>12439</bug_id>
          
          <creation_ts>2011-04-06 21:01:07 +0000</creation_ts>
          <short_desc>Validating a missing HTML tag</short_desc>
          <delta_ts>2015-08-23 07:07:30 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="XP1">dawpa2000</reporter>
          <assigned_to name="Michael[tm] Smith">mike</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>47213</commentid>
    <comment_count>0</comment_count>
    <who name="XP1">dawpa2000</who>
    <bug_when>2011-04-06 21:01:07 +0000</bug_when>
    <thetext>Validating a missing HTML tag

The HTML sample is missing &lt;html lang=&quot;en&quot;&gt;.

http://validator.w3.org/
This document was successfully checked as HTML5!

&lt;!DOCTYPE html&gt;
&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;title&gt;Test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;section&gt;
        &lt;h2&gt;Test&lt;/h2&gt;
    &lt;/section&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47651</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-04-24 14:41:25 +0000</bug_when>
    <thetext>Hi,

The validator is behaving correctly. The HTML language allows the &lt;html&gt; start tag to be omitted. It always has, both in HTML4 and before, and still in HTML5. (XHTML requires it, but that&apos;s a different matter).

For details, see the following section of the HTML5 spec -

http://dev.w3.org/html5/spec-author-view/syntax.html#optional-tags
&quot;An html element&apos;s start tag may be omitted if the first thing inside the html element is not a comment.&quot;

And, for the sake of comparison, see the following section of the HTML4 spec -

http://www.w3.org/TR/html401/struct/global.html#edef-HTML

Notice the part there that says, &quot;Start tag: optional, End tag: optional&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>