W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] [html5] tags, elements and generated DOM

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Tue, 05 Apr 2005 10:36:55 +0200
Message-ID: <42524E27.6060006@annevankesteren.nl>
I was wondering if HTML5 (WA1, at the moment) is going to define which 
tags are optional and which elements are implied. (This is of course 
only for text/html documents.)

For example, what is the resulting DOM of this document:

  <script type="text/javascript" src="bar"></script>

... and this:

  <script type="text/javascript" src="bar"></script>

..? Are both part of the implied HEAD element or is the SCRIPT element 
in the first example perhaps part of the BODY element? I believe both 
are possible.

Is there a BODY element in this document (or, is there always a body 

  <style type="text/css">
   body{ background:lime }

... or this:


Is HTML5 going to list which start- and endtags are optional and how the 
resulting DOM tree should look like in situations were there are 
multiple options?

  Anne van Kesteren
Received on Tuesday, 5 April 2005 01:36:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC