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
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.
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