On 28/11/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
> > > however the bug is only visible in a complex script, and within th
> > Firebug
> > > Inspector (but I can assure you it breaks my script), and I was not able
> > to
> > > write a simple test... so you might prefer to ignore me :)
> >
> > So this is in the case an element of $("h1") does not match any selector.
> >
> > The same error appears if you change the selector to:
> >
> > $("h1").filter([".one", ".nomatch"]).css("background", "red");
> >
> > Now, it breaks when a selector does not match any element of $("h1").
> >
> > In both cases the patch clears the issue
>
> Could you please post this as a bug report?
>
> I wonder if the filter(Array<String>) method is really useful, why not just
> use this:
> $("h1").filter(".one, .nomatch").css("background", "red");
> Should be pretty much the same.
Couldn't filter still take an array, but just convert it to a string
internally using join (which I thought it would have done anyway)?
Although the user could do that manually, i.e.
filter([".one",".two"].join(','))
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/