Re: Which Exception should be raised when multiple codes are possible

Joseph Kesselman wrote:
> See recent discussion in this list.
> If the operation if always illegal with
> these two node types, no matter what the values of those nodes are
> otherwise, it should probably be reported as a hierarchy error, and most
> existing DOMs seem to do it that way simply because it's easiest to
> code...
> but it isn't clear that the DOM has completely nailed this down.

So, as a conclusion, it is possible to raise any one of the exceptions
that apply, and DOM implementors can choose the one that is easiest to
implement.

Thanks,

Tobias Peters

Received on Sunday, 4 November 2001 02:26:10 UTC