Commit 26cda0c1 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Optimize :input with better regex

parent a87fa018
...@@ -1401,7 +1401,7 @@ jQuery.extend({ ...@@ -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])",
"@": { "@": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment