W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: NO_CHILDREN_ALLOWED_ERR exception

From: Don Park <donpark@quake.net>
Date: Fri, 14 Aug 1998 13:00:05 -0700
Message-ID: <006601bdc7be$2dcac8e0$2ee044c6@arcot-main>
To: <www-dom@w3.org>
>I don't think this has been mentioned yet, but the spec needs to indicate
>that replaceChild, removeChild and appendChild will throw this exception if
>the node subclass does not support children.  Currently, only insertBefore
>is stated as throwing that exception.

Tom,

I can see that replaceChild and appendChild needs to throw
NO_CHILDREN_ALLOWED_ERR but I don't see why removeChild needs to throw it?

BTW, the latest spec (not public yet) documents insertBefore, appendChild,
and replaceChild as throwing HIERARCHY_REQUEST_ERR instead of
NO_CHILDREN_ALLOWED_ERR.

Don
Received on Friday, 14 August 1998 16:09:07 GMT

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