[ng-dhtml] domUtil.createElement

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

On Sep 20, 2005, at 9:24 PM, David Schontzler wrote:

> 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.
> A descendant implementation would just end up being an XPath
> reimplementation, no?

Not quite [as powerful], but it's definitely going down that road.


More information about the NG-DHTML mailing list