Commit ef05f44c authored by John Resig's avatar John Resig

Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438.

parent 6a722e25
......@@ -444,19 +444,8 @@ jQuery.extend({
// expando of getElementsByTagName
var i = 0, elem, pos = first.length;
// Also, we need to make sure that the correct elements are being returned
// (IE returns comment nodes in a '*' query)
if ( !jQuery.support.getAll ) {
while ( (elem = second[ i++ ]) != null ) {
if ( elem.nodeType !== 8 ) {
first[ pos++ ] = elem;
}
}
} else {
while ( (elem = second[ i++ ]) != null ) {
first[ pos++ ] = elem;
}
while ( (elem = second[ i++ ]) != null ) {
first[ pos++ ] = elem;
}
return first;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment