Changeset 2820
- Timestamp:
- 08/21/07 07:33:52 (1 year ago)
- Location:
- trunk/jquery/src/selector
- Files:
-
- 2 modified
-
selector.js (modified) (1 diff)
-
selectorTest.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/selector/selector.js
r2818 r2820 54 54 reset: "'reset'==a.type", 55 55 button: '"button"==a.type||jQuery.nodeName(a,"button")', 56 input: "/input|select|textarea|button/i.test(a.nodeName)" 56 input: "/input|select|textarea|button/i.test(a.nodeName)", 57 58 // :has() 59 has: "jQuery.find(m[3],a).length" 57 60 }, 58 61 "[": "jQuery.find(m[2],a).length" -
trunk/jquery/src/selector/selectorTest.js
r2781 r2820 198 198 199 199 test("basic xpath", function() { 200 expect(1 6);200 expect(17); 201 201 ok( jQuery.find("//*").length >= 30, "All Elements (//*)" ); 202 202 ok( jQuery.find("//div", q("main")[0])[0] = q("foo")[0], "All Relative (#main//div)" ); … … 214 214 t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","table","fx-queue","fx-tests","sndp","en","sap"] ); 215 215 t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] ); 216 t( "Has Children - :has()", "//p:has(a)", ["firstp","ap","en","sap"] ); 216 217 217 218 $("#foo").each(function() {