Fixed issue with comment text being included in .text() results.
This commit is contained in:
parent
a4ec609b6a
commit
78a7cf63f6
1
src/jquery/jquery.js
vendored
1
src/jquery/jquery.js
vendored
|
@ -378,6 +378,7 @@ 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++ )
|
||||
if ( r[i].nodeType != 8 )
|
||||
t += r[i].nodeType != 1 ?
|
||||
r[i].nodeValue : jQuery.fn.text([ r[i] ]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue