Re: NO_CHILDREN_ALLOWED_ERR exception

>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 UTC