Optimize :input with better regex

This commit is contained in:
Jörn Zaefferer 2006-11-20 21:01:17 +00:00
parent a87fa0188b
commit 26cda0c1e5

View file

@ -1401,7 +1401,7 @@ jQuery.extend({
image: "a.type=='image'",
reset: "a.type=='reset'",
button: "a.type=='button'",
input: "a.nodeName.toLowerCase().match(/input|select|textarea|button/)"
input: "/input|select|textarea|button/i.test(a.nodeName)"
},
".": "jQuery.className.has(a,m[2])",
"@": {