mirror of
https://github.com/jquery/jquery.git
synced 2026-02-05 23:34:58 -05:00
Optimize :input with better regex
This commit is contained in:
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@@ -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])",
|
||||
"@": {
|
||||
|
||||
Reference in New Issue
Block a user