Re: Last Call comments on DOM 3 Core Specification

On Mon, 2003-08-04 at 09:13, Christian Parpart wrote:
> > 7. Interface Text :
> >
> > "If the Text node is a direct child of the Document node, ..."
> > -  Document can have only Element, ProcessingInstruction, Comment,
> > DocumentType. So a text node can not be a direct child of the Document
> > node.
> 
> I believe the only good usecase for having Text nodes beeing a direct child of
> Document is, that you can reproduce the original document structure.

Correct, except that the DOM specification, since DOM Level 1,
explicitly prevents you from having Text nodes as direct children of a
Document node:

[[
The node types, and which node types they may have as children, are as
follows: 

      * Document -- Element (maximum of one), ProcessingInstruction,
        Comment, DocumentType
]]
http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1590626202

Philippe

Received on Tuesday, 5 August 2003 17:34:22 UTC