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

Re: setting document root element

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 12 Nov 2001 08:55:30 -0500
To: "www-dom list" <www-dom@w3.org>
Message-ID: <OF20DD808B.652996AD-ON85256B02.004C0E3E@pok.ibm.com>

DOM Level 1 didn't specify how the root element was created, but I believe
it did say it couldn't be removed.

DOM Level 2 said the root element could be created only at the time the
document was created, and still didn't permit removing it. The rationalle
has to do with potentially using information about the root element's
namespace and localname, along with the document type information, to
select among different DOM implementations/subclasses.

Last I checked, DOM Level 3 was considering adding the ability to set the
root element after the Document had been created, and as a result was
considering allowing folks to return to that state by removing the root
element.  This does cause some problems for folks who want to subclass, but
the Embedded DOM capability appeared to offer an alternative solution for
those users. I'm not sure of the current status; check the Level 3 Working
Draft.

______________________________________
Joe Kesselman  / IBM Research
Received on Monday, 12 November 2001 10:35:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT