X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=b0a0e91fa8ac81b473396c70ebd880e780ef58f9;hb=9dc6e0c572b9c809a3a4c123071d96d48a01dd1c;hp=fecba6617c848042101aaf61435ba474aeda13a0;hpb=920099b29c1157b637f918cdc293e1c89e9cd4dc;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index fecba66..b0a0e91 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -1,11 +1,13 @@ +(function( jQuery ) { + var rclass = /[\n\t]/g, rspace = /\s+/, rreturn = /\r/g, - rspecialurl = /href|src|style/, - rtype = /(button|input)/i, - rfocusable = /(button|input|object|select|textarea)/i, - rclickable = /^(a|area)$/i, - rradiocheck = /radio|checkbox/; + rspecialurl = /^(?:href|src|style)$/, + rtype = /^(?:button|input)$/i, + rfocusable = /^(?:button|input|object|select|textarea)$/i, + rclickable = /^a(?:rea)?$/i, + rradiocheck = /^(?:radio|checkbox)$/i; jQuery.fn.extend({ attr: function( name, value ) { @@ -341,3 +343,5 @@ jQuery.extend({ } } }); + +})( jQuery );