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

RE: createEntity and ImportNode

From: Keith W. Boone <kboone@ebt.com>
Date: Thu, 13 Apr 2000 16:40:41 -0400
To: <www-dom@w3.org>
Message-ID: <000001bfa588$894fb1e0$767770c6@ebt.com>
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 GMT

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