git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Mike Alsup's style/cssText fix and made a quick typeof change.
[jquery.git]
/
jquery
/
jquery.js
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
b6738a8
..
1e1e4ab
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-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){
'for': 'htmlFor',
'text': 'cssText',
'class': 'className',
'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");
};
a = (fix[a] && fix[a].replace && fix[a]) || a;
var r = new RegExp("-([a-z])","ig");