[Prototype-core] Re: combinator selectors in Element#select

2007-10-17 Thread [EMAIL PROTECTED]
Please make it to be simple, look at the source code: select: function() { var args = $A(arguments), element = $(args.shift()); return Selector.findChildElements(element, args); }, the select method is only a wrapper of the Selector.findChildElements, and with different selector

[Prototype-core] Re: combinator selectors in Element#select

2007-10-17 Thread Mislav Marohnić
On 10/17/07, kangax [EMAIL PROTECTED] wrote: In a nutshell, element.select(' foo') does not return the correct result +1 for fixing it, regardless of the fact it may not be a valid selector ... it's a valid fragment of a selector. I want to be able to select immediate descendants this way.

[Prototype-core] Re: combinator selectors in Element#select

2007-10-17 Thread Andrew Dupont
I'm not crazy about it. Deviations from the CSS3 spec are troublesome because they're not discoverable and they violate POLS. If we're going to go down that slippery slope, selector.js will get even larger than it already has. The extended Enumerable#grep semantics in 1.6 make kangax's