[ng-dhtml] domUtil.createElement

Bob Ippolito bob at redivi.com
Tue Sep 20 20:20:02 CDT 2005


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




More information about the NG-DHTML mailing list