W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998


From: Mike Olson <mike.olson@fourthought.com>
Date: Wed, 30 Dec 1998 22:55:45 -0600
Message-ID: <368B03D1.8EA56B12@fourthought.com>
To: www-dom@w3.org

John Cowan wrote:

> Mike Champion wrote:
> <snip>

> 2. All valid HTML documents contain HTML, HEAD, and BODY elements even
> if no such tags are present, and therefore conforming DOM implementations
> must represent them explicitly as nodes.  (TBODY, which is a container
> for table rows, obeys the same rules: it appears implicitly in every
> TABLE element.)

I've been following your thread with much intrest, and need a little

Would the adding of these tags be the job of the builder or the DOM
implementation?  If it is the job of the DOM implementation, when should these
be added?  In the example giving earlier, I imagine it would be the job of the
builder to make sure the DOM structure represents a valid 4.0 document even if
what it is parsing is not completely valid (missing the HTML tag or such).
However, should

d = someFactory.createHTMLDocument();
d.setTitle('A New Title')

add a HTML and a HEAD (and of course a TITLE) to the document?

or should:

d = someFactory.createHTMLDocument();

create a BODY tag and then return it?  What if the user really wants frames??

Much thanks

> --
> John Cowan                                      cowan@ccil.org
>                 e'osai ko sarji la lojban.

Mike Olson
Member Consultant
FourThought LLC
http://www.fourthought.com http://opentechnology.org


"No program is interesting in itself to a programmer. It's only interesting as
as there are new challenges and new ideas coming up." --- Linus Torvalds
Received on Thursday, 31 December 1998 00:30:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC