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

Re: DOM Level 1 Becomes a W3C Recommendation

From: Arnaud Le Hors <lehors@w3.org>
Date: Fri, 02 Oct 1998 20:14:08 +0200
Message-ID: <361517F0.E4777B59@w3.org>
To: www-dom@w3.org
msabin@cromwellmedia.co.uk wrote:
> I think you're confusing the case where the new child
> is not in the tree (the common case) with the case
> where the parent is not in the tree (very rare).It's
> only in the latter that it sort of makes sense to say
> that no check is needed. But it doesn't even really
> make sense here, because this is just the degenerate
> case where a child is being appended to the root node
> of a document: naturally the check will be quick here
> because, the walk from the root node to the root node
> is trivial ;-)

You're right, however, the test will also be cheap in the case where the
inserted node has no children. I'll admit that this not a case as common
as the one I had in mind but it's still probably worth checking.
Arnaud  Le Hors  -  W3C, User Interface Domain  - 
Received on Friday, 2 October 1998 14:15:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC