problem with 'find'
problem with 'find'
I've been trying to chase down a problem with one of my unit tests.
The issue is that evalScripts is executing and appears to find a
script tag where none exists. Looking further, it seems that 'find'
never returns a jQuery object of size 0. For cases like the one I was
testing, where no match exists, find returns a jQuery object like
this: [undefined]. That is, it has a size of 1 but element 0 is
undefined.
Things work fine in 1.0.4, but in the current SVN code the following happens:
// alerts 1 (should be 0)
alert($('no-such-tag', this).length);
// alerts 'undefined'
alert($('no-such-tag', this)[0]);
Mike
_______________________________________________
Jquery-dev mailing list
Jquery-dev@bassistance.de
http://lists.bassistance.de/mailman/listinfo/jquery-dev