A follow-up to the comment I just posted here... I ran this in Firebug:
var l = []; for(f in $('div')){l.push(f);}; l.sort(); alert(l.join("\n"));
just to make sure I wasn't going crazy, and "contains" is not, in fact, a method of the jQuery wrapped set. But the jquery docs page says it is. What gives? Was there a "contains" method that got deprecated? Is it new, and the version I'm testing with (1.2.1) doesn't have it yet? Is there a better way to find this information than asking on SO?