X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=fc3d5515b4ba97a8dfef2c61e0417358cb38773f;hb=78a7cf63f6e984e4c87cdef52688283f81846f0b;hp=0a21af773f98174573c33fd76d445b28c50ffacd;hpb=f7efcc858dec55fa3b9babb94ebc73b0888e6d51;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 0a21af7..fc3d551 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -378,8 +378,9 @@ jQuery.fn = jQuery.prototype = { for ( var j = 0; j < e.length; j++ ) { var r = e[j].childNodes; for ( var i = 0; i < r.length; i++ ) - t += r[i].nodeType != 1 ? - r[i].nodeValue : jQuery.fn.text([ r[i] ]); + if ( r[i].nodeType != 8 ) + t += r[i].nodeType != 1 ? + r[i].nodeValue : jQuery.fn.text([ r[i] ]); } return t; }, @@ -1025,6 +1026,7 @@ jQuery.extend({ odd: "i%2", // Child Checks + "nth-child": "jQuery.sibling(a,m[3]).cur", "first-child": "jQuery.sibling(a,0).cur", "last-child": "jQuery.sibling(a,0).last", "only-child": "jQuery.sibling(a).length==1", @@ -1265,7 +1267,8 @@ jQuery.extend({ "class": "className", "float": "cssFloat", innerHTML: "innerHTML", - className: "className" + className: "className", + value: "value" }; if ( fix[name] ) { @@ -2549,7 +2552,7 @@ jQuery.macros = { * @cat DOM/Manipulation */ remove: function(a){ - if ( !a || jQuery.filter( [this], a ).r ) + if ( !a || jQuery.filter( a, [this] ).r ) this.parentNode.removeChild( this ); },