[ng-dhtml] domUtil.createElement

David Schontzler schontz at gmail.com
Tue Sep 20 20:24:57 CDT 2005


A descendant implementation would just end up being an XPath
reimplementation, no?

On 9/20/05, Bob Ippolito <bob at redivi.com> wrote:
> 
> On Sep 20, 2005, at 6:44 PM, Michael Schall wrote:
> 
> > I looked to MochiKit to see if they had an implementation.
> > It has a nice way of implementing this in MochiKit.DOM.
> >
> > Two other very nice functions are Ancestor and Decendent.
> > They are in the same file.  Unfortunately MochiKit does
> > not have an implementation of these two.
> 
> Well, a tag-only form of Descendant is part of DOM level 1, and
> MochiKit implements a tag-or-class version of Descendant
> (getElementsByTagAndClassName).
> 
> An arbitrary attribute version isn't implemented.. I'd implement them
> if I had a use case, but I don't.
> 
> -bob
> 
> 
> _______________________________________________
> NG-DHTML mailing list
> NG-DHTML at netwindows.org
> http://netwindows.org/mailman/listinfo/ng-dhtml_netwindows.org
>



More information about the NG-DHTML mailing list