Skip to content
Permalink
Browse files
Optimize :input with better regex
  • Loading branch information
jzaefferer committed Nov 20, 2006
1 parent a87fa01 commit 26cda0c1e549da365ae13cabcb7d0a84e0dad2b7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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])",
"@": {

0 comments on commit 26cda0c

Please sign in to comment.