[Bug 27921] New: Full documents without root <html> validate

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27921

            Bug ID: 27921
           Summary: Full documents without root <html> validate
           Product: Validator
           Version: HEAD
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5
          Assignee: mike+validator@w3.org
          Reporter: hello@jwilde.me
        QA Contact: www-validator-cvs@w3.org

The following document passes HTML5 strict in the validator, even when the
"full document" checkbox is checked for direct input mode:

  <!DOCTYPE html>
  <head>
    <title>Invalid</title>
  </head>
  <body>
    <p>Hello world</p>
  </body>

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

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

Thanks!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 29 January 2015 00:14:33 UTC