- From: Mike Olson <mike.olson@fourthought.com>
- Date: Wed, 30 Dec 1998 22:55:45 -0600
- 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 clarification. 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(); d.getBody(); 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 long as there are new challenges and new ideas coming up." --- Linus Torvalds
Received on Thursday, 31 December 1998 00:30:25 UTC