aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartijn W. van der Lee <martijn@vanderlee.com>2016-01-11 20:59:33 +0100
committerTimmy Willison <timmywillisn@gmail.com>2016-01-13 13:33:01 -0500
commit0e2f8f9effd2c95647be534bf9055e099aad7cfd (patch)
treed4e3ef74d8d4b861ea1090a8a829ae133ecbd2f8 /src
parentb0b280cd61d1fa12b67bd723ac2c2fa91b92db01 (diff)
downloadjquery-0e2f8f9effd2c95647be534bf9055e099aad7cfd.tar.gz
jquery-0e2f8f9effd2c95647be534bf9055e099aad7cfd.zip
Traversing: .not/.filter consistency with non-elements
Fixes gh-2808 Close gh-2809
Diffstat (limited to 'src')
-rw-r--r--src/traversing/findFilter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js
index ee76a57a7..f3a929e53 100644
--- a/src/traversing/findFilter.js
+++ b/src/traversing/findFilter.js
@@ -33,7 +33,7 @@ function winnow( elements, qualifier, not ) {
}
return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
} );
}