W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

Re: Error in validator, missing starting <body> tag passes the validation process

From: David Dorward <david@dorward.me.uk>
Date: Tue, 23 Apr 2013 07:23:48 +0100
To: "Julio Meca Hansen" <julio@refineriaweb.com>
Cc: www-validator@w3.org
Message-ID: <239FA444-26B6-42F9-8222-A48BB5C21B35@dorward.me.uk>
On 22 Apr 2013, at 13:12, Julio Meca Hansen wrote:
> I’ve discovered what I think it’s an error in the HTML5 validator. 
> Omitting
> the starting <body> tag makes a web page (using the direct input 
> validator)
> go valid.

 From the specification "[8.1.2.4 Optional 
tags](http://www.w3.org/TR/html5/syntax.html#optional-tags)":

> A body element's start tag may be omitted if the element is empty, or 
> if the first thing inside the body element is not a space character or 
> a comment, except if the first thing inside the body element is a 
> script or style element.

-- 
David Dorward
http://dorward.co.uk/
Received on Tuesday, 23 April 2013 06:24:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC