<?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>27921</bug_id>
          
          <creation_ts>2015-01-29 00:14:31 +0000</creation_ts>
          <short_desc>Full documents without root &lt;html&gt; validate</short_desc>
          <delta_ts>2015-08-23 07:07:02 +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>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Wilde [:jwilde]">hello</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</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>117561</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Wilde [:jwilde]">hello</who>
    <bug_when>2015-01-29 00:14:31 +0000</bug_when>
    <thetext>The following document passes HTML5 strict in the validator, even when the &quot;full document&quot; checkbox is checked for direct input mode:

  &lt;!DOCTYPE html&gt;
  &lt;head&gt;
    &lt;title&gt;Invalid&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;Hello world&lt;/p&gt;
  &lt;/body&gt;

Per my reading of &lt;http://www.w3.org/TR/html5/syntax.html#writing&gt;, this should at least throw a warning, if not fail validation entirely, due to the lack of an enclosing html element:

&gt; Documents must consist of the following parts, in the given order:
&gt;
&gt;   ...
&gt;
&gt;   5. The root element, in the form of an html element.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117730</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-02-06 22:17:24 +0000</bug_when>
    <thetext>The start tag and end tag for the html element can be omitted.
See http://www.w3.org/TR/html5/semantics.html#the-html-element

The start tags and end tags for the body and head elements can be omitted also, so the following is also a valid full document:

  &lt;!DOCTYPE html&gt;
    &lt;title&gt;Invalid&lt;/title&gt;
    &lt;p&gt;Hello world&lt;/p&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>