Commit 582075e9 authored by John Resig's avatar John Resig

Added Mike Alsup's style/cssText fix and made a quick typeof change.

parent 83c75321
...@@ -577,7 +577,7 @@ $.Select = function( t, context ) { ...@@ -577,7 +577,7 @@ $.Select = function( t, context ) {
}; };
$.tag = function(a,b){ $.tag = function(a,b){
return a && typeof a.getElementsByTagName != "undefined" ? return a && a.getElementsByTagName ?
a.getElementsByTagName( b ) : []; a.getElementsByTagName( b ) : [];
}; };
...@@ -587,7 +587,8 @@ $.attr = function(o,a,v){ ...@@ -587,7 +587,8 @@ $.attr = function(o,a,v){
'for': 'htmlFor', 'for': 'htmlFor',
'text': 'cssText', 'text': 'cssText',
'class': 'className', 'class': 'className',
'float': 'cssFloat' 'float': 'cssFloat',
'style': 'cssText'
}; };
a = (fix[a] && fix[a].replace && fix[a]) || a; a = (fix[a] && fix[a].replace && fix[a]) || a;
var r = new RegExp("-([a-z])","ig"); var r = new RegExp("-([a-z])","ig");
......
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