W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: Older Sibling?

From: David Brownell <david-b@pacbell.net>
Date: Wed, 01 Mar 2000 11:10:58 -0800
Message-ID: <38BD6B42.20D168C4@pacbell.net>
To: keshlam@us.ibm.com
Cc: www-dom@w3.org
keshlam@us.ibm.com wrote:
> 
> >There're several other queries like this which could usefully
> >be added and which might allow for similar optimizations:
> >precedes in document order; is an ancestor of; least common
> >ancestor; depth from root etc.
> 
> Just a coding tip:
> 
> If an optimized operation isn't supported directly in the DOM, consider
> writing a library routine to encapsulte it. This could use custom calls
> against DOM implementations that provide shortcuts, but fall back on
> standard DOM operations for those which don't have such features.

Or -- if the implementation supported the optional "we've got
these graph-structure primitives" feature, it could use them
without needing custom calls. 

L2 _is_ going to be very clear about how folk other than W3C
can define new feature identifiers to pass to Node.hasFeature()
isn't it?  

- Dave
Received on Wednesday, 1 March 2000 14:10:54 GMT

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