From 582075e965a7df985aede0e088928c486fe9ce06 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 13 Jun 2006 04:09:56 +0000 Subject: [PATCH] Added Mike Alsup's style/cssText fix and made a quick typeof change. --- jquery/jquery.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jquery/jquery.js b/jquery/jquery.js index b6738a80..1e1e4aba 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");