Optimize :input with better regex
This commit is contained in:
parent
a87fa0188b
commit
26cda0c1e5
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -1401,7 +1401,7 @@ jQuery.extend({
|
||||||
image: "a.type=='image'",
|
image: "a.type=='image'",
|
||||||
reset: "a.type=='reset'",
|
reset: "a.type=='reset'",
|
||||||
button: "a.type=='button'",
|
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])",
|
".": "jQuery.className.has(a,m[2])",
|
||||||
"@": {
|
"@": {
|
||||||
|
|
Loading…
Reference in a new issue