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

HIERARCHY_REQUEST_ERR for multiple root Elements

From: <Ray_Gates@manulife.com>
Date: Wed, 18 Nov 1998 17:29:34 -0500 (EST)
To: www-dom@w3.org
Message-ID: <852566C0.0079BDE7.00@Manulife_Ext_Two@manulife.com>

The message reports a possible omission in exception reasons for the
AppendChild and InsertBefore methods of Node (pages 29 and 31 in the PDF
version).

Since a document is allowed to have only one root Element, I believe the
specification should require the AppendChild and InsertBefore methods of
Node to raise a HIERARCHY_REQUEST_ERR exception if either method is used to
insert a sibling for the root Element.

The existing description of this exception states:

   HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
   allow children of the type of the newChild node, or if the node to
   append/insert
   is one of this node?s ancestors.

I suggest changing this to read:

   HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
   allow children of the type of the newChild node, or if the node to
   append/insert
   is one of this node?s ancestors, or the action would create a sibling
   for a
   document root element.

Regards,

Ray Gates
Senior Technical Advisor
Information Services Architecture
Manulife Financial
Tel: +1 (416) 926-3080 Fax: +1 (416) 926-5540
Email: Ray_Gates@manulife.com
Received on Monday, 23 November 1998 05:21:47 GMT

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