X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=1e1e4abafe2f43d292add3cc10fd6c38c66495a3;hb=582075e965a7df985aede0e088928c486fe9ce06;hp=9f35e1a91348d74cf763e97fa17fd2c4bd0212cf;hpb=4b6bcb235fc4ae30692d27910dffbf79295e36f4;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 9f35e1a..1e1e4ab 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -387,8 +387,16 @@ $.clean = function(a) { var r = []; for ( var i = 0; i < a.length; i++ ) { if ( a[i].constructor == String ) { + if ( a[i].indexOf(""; + } var div = document.createElement("div"); div.innerHTML = a[i]; + if ( tr ) { + div = div.firstChild.firstChild; + } for ( var j = 0; j < div.childNodes.length; j++ ) { r[r.length] = div.childNodes[j]; } @@ -569,7 +577,7 @@ $.Select = function( t, context ) { }; $.tag = function(a,b){ - return a && typeof a.getElementsByTagName != "undefined" ? + return a && a.getElementsByTagName ? a.getElementsByTagName( b ) : []; }; @@ -579,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");