X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=1e1e4abafe2f43d292add3cc10fd6c38c66495a3;hb=582075e965a7df985aede0e088928c486fe9ce06;hp=b6738a800a506f54ae77ef58ff8fa9bf0344ce22;hpb=83c75321619f9968e4373a13aced5f83d4228962;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index b6738a8..1e1e4ab 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -577,7 +577,7 @@ $.Select = function( t, context ) { }; $.tag = function(a,b){ - return a && typeof a.getElementsByTagName != "undefined" ? + return a && a.getElementsByTagName ? a.getElementsByTagName( b ) : []; }; @@ -587,7 +587,8 @@ $.attr = function(o,a,v){ 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', - 'float': 'cssFloat' + 'float': 'cssFloat', + 'style': 'cssText' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig");