[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
On 10/5/06, Bob Ippolito [EMAIL PROTECTED] wrote: Yes absolutely. I've wanted to add CSS selector support for a long time, but I haven't had the opportunity to do it. There's even an open ticket on the issue. Hi all, I gave this a stab. I ported selector.js from prototype to MochiKit, in a

[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
Hi again, sorry for reposting On 10/6/06, Arnar Birgisson [EMAIL PROTECTED] wrote: It supports sub-element selecting (like div#form input) but not other combinators (E F, E+ F, E~ F) - although I think they could be added. Turns out this was not too hard. Here's an updated version that

[mochikit] Re: CSS selectors

2006-10-06 Thread Matt Goodall
MochiKit + cssQuery have been my standard JS libraries for a while now so it would be really good to see something like cssQuery in MochiKit. Thanks for the effort so far! My only real comment is on the packaging and naming. At the moment it's MochiKit.Selector.findChildElements(element,

[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
On 10/6/06, Matt Goodall [EMAIL PROTECTED] wrote: My only real comment is on the packaging and naming. At the moment it's MochiKit.Selector.findChildElements(element, expressions). I think MochiKit.DOM.getElementsBySelector(expression, element=document) seems more in keeping with the rest of

[mochikit] Re: CSS selectors

2006-10-05 Thread troels knak-nielsen
cssQuery is the best implementation I've seen, and it works nicely together with mochikit. It's a bit heavyweight too though : http://dean.edwards.name/my/cssQuery/ On 10/5/06, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi all, Many javascript libraries have convenience functions for selecting