From 26cda0c1e549da365ae13cabcb7d0a84e0dad2b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 20 Nov 2006 21:01:17 +0000 Subject: [PATCH] Optimize :input with better regex --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index f2e9c18..7b891ea 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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])", "@": { -- 1.7.10.4