rem: $('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() { var close = $('spanx', this); ok( close.length == 0, "Element does not exist, length must be zero" ); ok( !close[0], "Element does not exist, direct access to element must return undefined" );  return false; }).click(); 
add: test("eq(), gt(), lt(), contains()", function() { ok( $("#ap a").eq(1)[0].id == "groups", "eq()" ); isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" ); isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" ); isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" ); }); 
context: 	$('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() {	    var close = $('spanx', this); // same with $(this).find('span');	    ok( close.length == 0, "Element does not exist, length must be zero" );	    ok( !close[0], "Element does not exist, direct access to element must return undefined" );	    //console.log( close[0]); // it's the <a> and not a <span> element	    return false;	}).click();
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/3728a8ac0494de7ccab48bfc69f5d71496ba64c2/coreTest.js/buggy/src/jquery/coreTest.js