From ef05f44cce870a8b78637b0a88b27087f7f13b37 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 7 Nov 2009 16:15:33 +0100 Subject: [PATCH] Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438. --- src/core.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/core.js b/src/core.js index f605e1d..ff31e81 100644 --- a/src/core.js +++ b/src/core.js @@ -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; -- 1.7.10.4