Re: Comments on the use of exceptions...

>When looping over all child nodes, or all nodes returned by
>getElementsByTag name, we DO NOT want to force the user to call size()

It's getLength() now... I didn't bring this up because the question was
specifically about NamedNodeMap, where length will probably be easier to
calculate than the NodeList. But given that NodeList wants to be able to
avoid calling getLength(), it makes sense for NamedNodeMap to be consistant
with that design and permit the same coding style.

Further, deponent saith not.

______________________________________
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.

Received on Thursday, 20 August 1998 16:59:29 UTC