W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: setting document root element

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 19 Sep 2001 13:59:00 -0400
To: "Garret Wilson" <garret@globalmentor.com>
Cc: "www-dom list" <www-dom@w3.org>
Message-ID: <OF223B7ECD.F5D02024-ON85256ACC.006286AF@pok.ibm.com>

DOM Level 3 has been looking at this. There are some slightly ugly issues
regarding the fact that some DOMs may want to subclass themselves based on
the DTD and/or the root element's namespace, so there are definitely cases
where you do _not_ want to allow the document to be created before the root
element is known... but there are also cases where it's more reasonable, so
the DOM may be able to permit it for _some_ implementations. Still being
researched, as far as I know.

Meanwhile, all I can suggest is buffering the incoming data -- or otherwise
looking ahead -- to obtain the information required by createDocument
before it's needed.

Joe Kesselman  / IBM Research
Received on Wednesday, 19 September 2001 14:00:52 UTC

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