Re: "Empty" Text Nodes

-----Original Message-----
From: Oliver Becker <obecker@informatik.hu-berlin.de>
To: db@Eng.Sun.COM <db@Eng.Sun.COM>
Cc: www-dom@w3.org <www-dom@w3.org>
Date: Thursday, February 25, 1999 9:08 AM
Subject: Re: "Empty" Text Nodes



>The spec states (just after the TABLE example on page 11):
>
>    One important property of DOM structure models is structural
>    isomorphism: if any two Document Object Model implementations
>    are used to create a representation of the same document, they
>    will create the same structure model, with precisely the same
>    objects and relationships.
>
>If *any* two DOM implementations shall create the same structure model,
>then this model must be well defined. So I think it's not out of scope.


One clarification, which we may or may not state in the spec but we
definitely discussed -- a validating parser and a non-validating parser may
produce two different structure models from the same document, for the
reasons noted in the original posting.  This is more properly in the realm
of XML than the DOM -- the DOM just reflects the output of the XML
processor, which can differ depending on whether it is validating or not.

Mike Champion

Received on Thursday, 25 February 1999 09:22:58 UTC