Re: RDFa in HTML vs XHTML

On Tue, Dec 20, 2011 at 5:26 PM, Ivan Herman <ivan@w3.org> wrote:
> However... it is correct, isn't it, that <head> or <body> may be missing in HTML5 (ie, not XHTML5), right?

The *tags* may be missing and it's valid for them to be missing.

The head *element* will never be missing after the parse completes.
(Unless a script removes the element during the parse. However,
removing the head element via a script puts the document into an
invalid state.)

Even without scripting, the body *element* can be missing after the
parse completes if there's a frameset element instead. Using the
frameset element instead of the body element is invalid, though.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Monday, 2 January 2012 22:08:21 UTC