X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=37c2b3f73ff03fcc8ea1a1d9f5a14fcc5c40fb38;hb=aabfccf371ac9a16979772dc6411fbe806138fac;hp=a06e81c29f169fe6c010575dcff70a28787fe829;hpb=44590a5d848011d4be05fcf1d098d09c01bb7caf;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index a06e81c..37c2b3f 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -430,7 +430,7 @@ $.clean = function(a) { for ( var j = 0; j < div.childNodes.length; j++ ) { r[r.length] = div.childNodes[j]; } - } else if ( a[i].length ) { + } else if ( a[i].length && !a[i].nodeType ) { for ( var k = 0; k < a[i].length; k++ ) { r[r.length] = a[i][k]; }