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

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