rem: $("#foo").each(function() { isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" ); }); 
add: t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] ); t( "Attribute Equals", "a[@rel=bookmark]", ["simon1"] ); t( "Multiple Attribute Equals", "input[@type='hidden'],input[@type='radio']", ["hidden1","radio1","radio2"] ); t( "Multiple Attribute Equals", "input[@type=\"hidden\"],input[@type='radio']", ["hidden1","radio1","radio2"] ); t( "Multiple Attribute Equals", "input[@type=hidden],input[@type=radio]", ["hidden1","radio1","radio2"] );  t( "Attribute selector using UTF8", "span[@lang=中文]", ["台北"] );  t( "Attribute Begins With", "a[@href ^= 'http: t( "Attribute Ends With", "a[@href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[@href *= 'google']", ["google","groups"] );  t("Select options via [@selected]", "#select1 option[@selected]", ["option1a"] ); t("Select options via [@selected]", "#select2 option[@selected]", ["option2d"] ); t("Select options via [@selected]", "#select3 option[@selected]", ["option3b", "option3c"] );  t( "Grouped Form Elements", "input[@name='foo[bar]']", ["hidden2"] );  t( ":not() Existing attribute", "select:not([@multiple])", ["select1", "select2"]); t( ":not() Equals attribute", "select:not([@name=select1])", ["select2", "select3"]); t( ":not() Equals quoted attribute", "select:not([@name='select1'])", ["select2", "select3"]); 
context: test("basic xpath", function() {	expect(16);	ok( jQuery.find("//*").length >= 30, "All Elements (//*)" );	ok( jQuery.find("//div", q("main")[0])[0] = q("foo")[0], "All Relative (#main//div)" );	t( "All P Elements", "//p", ["firstp","ap","sndp","en","sap","first"] );	t( "Absolute Path", "/html/body", ["body"] );	t( "Absolute Path w/ *", "/* /body", ["body"] );	t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] );	t( "Absolute and Relative Paths", "/html//p", ["firstp","ap","sndp","en","sap","first"] );	t( "All Children, Explicit", "//code/*", ["anchor1","anchor2"] );	t( "All Children, Implicit", "//code/", ["anchor1","anchor2"] );	t( "Attribute Exists", "//a[@title]", ["google"] );	t( "Attribute Equals", "//a[@rel='bookmark']", ["simon1"] );	t( "Parent Axis", "//p/..", ["main","foo"] );	t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","table","fx-queue","fx-tests","sndp","en","sap"] );	t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","table","fx-queue","fx-tests","sndp","en","sap"] );	t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] );		$("#foo").each(function() {		isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );	});});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/660490e6f487332aaf10c19fd9bbb325bc9946af/selectorTest.js/buggy/src/selector/selectorTest.js