rparentsprev = /^(?:parents|prevUntil|prevAll)/,
// Note: This RegExp should be improved, or likely pulled from Sizzle
rmultiselector = /,/,
- rchild = /^\s*>/,
isSimple = /^.[^:#\[\.,]*$/,
slice = Array.prototype.slice,
POS = jQuery.expr.match.POS;
jQuery.fn.extend({
find: function( selector ) {
- // Handle "> div" child selectors and pass them to .children()
- if ( typeof selector === "string" && rchild.test( selector ) ) {
- return this.children( selector.replace( rchild, "" ) );
- }
-
var ret = this.pushStack( "", "find", selector ), length = 0;
for ( var i = 0, l = this.length; i < l; i++ ) {
ok( true, "Resize event fired." );
}).resize().unbind("resize");
- ok( !jQuery(window).data("events"), "Make sure all the events are gone." );
+ ok( !jQuery(window).data("__events__"), "Make sure all the events are gone." );
});
/*
module("traversing");
test("find(String)", function() {
- expect(3);
+ expect(5);
equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' );
// using contents will get comments regular, text, and comment nodes
equals( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" );
same( jQuery("#main").find("> div").get(), q("foo", "moretests", "tabindex-tests", "liveHandlerOrder", "siblingTest"), "find child elements" );
+ same( jQuery("#main").find("> #foo, > #moretests").get(), q("foo", "moretests"), "find child elements" );
+ same( jQuery("#main").find("> #foo > p").get(), q("sndp", "en", "sap"), "find child elements" );
});
test("is(String)", function() {
-1.4.3
\ No newline at end of file
+1.4.3pre
\ No newline at end of file