W3C home > Mailing lists > Public > public-html-data-tf@w3.org > January 2012

Re: RDFa in HTML vs XHTML

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 2 Jan 2012 18:23:27 +0200
Message-ID: <CAJQvAufCpkOp4_9O1Ed-x8WUjzwWiSKi6Xv01bCwCiCu3g+5eA@mail.gmail.com>
To: HTML Data Task Force WG <public-html-data-tf@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:06 UTC