W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

createEntity and ImportNode

From: Keith W. Boone <kboone@ebt.com>
Date: Thu, 13 Apr 2000 16:06:19 -0400
To: <www-dom@w3.org>
Message-ID: <000101bfa583$bc114350$767770c6@ebt.com>

I know that this was probably deferred to DOM Level 3 for reasons having to
do with DocumentTypes being read-only, but I believe that there either:

Should be a createEntity() method on Document or, the comments on
importNode() regarding importing Entities should be changed to indicate that
an attempt to import an entity is not supported.

Here's my rational for this change:

At present, there is no way to create an Entity node using current DOM
API's, however, a DOM 2 Compliant implementation must support the
importNode() method, which is a back door method for creating an Entity.
There should either be a way to create Entities that is directly supported
from Document, or the ability to Import entities should not be allowed in
DOM Level 2.

	Keith
Received on Thursday, 13 April 2000 16:06:36 GMT

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