RE: createEntity and ImportNode

BTW: The same reasoning and changes would also apply to Notation Nodes.

-----Original Message-----
From: www-dom-request@w3.org [mailto:www-dom-request@w3.org]On Behalf Of
Keith W. Boone
Sent: Thursday, April 13, 2000 4:06 PM
To: www-dom@w3.org
Subject: createEntity and ImportNode



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:41:00 UTC