aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-11-07 16:15:33 +0100
committerJohn Resig <jeresig@gmail.com>2009-11-07 16:15:33 +0100
commitef05f44cce870a8b78637b0a88b27087f7f13b37 (patch)
treef1e1fbf98f07c39f952549ce47cca1ce9660bb48 /src/core.js
parent6a722e251dedd5f01ac0c46e330a368be7bb760b (diff)
downloadjquery-ef05f44cce870a8b78637b0a88b27087f7f13b37.tar.gz
jquery-ef05f44cce870a8b78637b0a88b27087f7f13b37.zip
Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/core.js b/src/core.js
index f605e1d01..ff31e813d 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;