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:

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

... and this:

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

..? 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 
element?):

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

... or this:

  <title>Bar</title>

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
  <http://annevankesteren.nl/>
Received on Tuesday, 5 April 2005 01:36:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:21 UTC