On Oct 2, 11:42 am, Dave Methvin <[EMAIL PROTECTED]> wrote:
> http://docs.jquery.com/Traversing/is#expr
> "If no element fits, or the expression is not valid, then the response
> will be 'false'. Note: Only simple expressions are supported. Complex
> expressions, such as those containing hierarchy selectors (such as +,
> ~, and >) will always return 'true'.

Is there a reason, internally, why it would always return true instead
of false? It would seem to make much more sense to return false for
complex selectors.

Or, preferably, if it's a complex selector evaluate it globally, then
check to see if the item to be matched is contained within the
results. This would be slow in some cases, for sure, but would
probably behave as many people expect. It seems like the behavior
of .is() confuses a lot of people when they first use it (myself
included).

Matt Kruse

Reply via email to