aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-08-09 12:42:05 +0200
committerGitHub <noreply@github.com>2019-08-09 12:42:05 +0200
commitcef4b73179b8d2a38cfd5e0730111cc80518311a (patch)
tree7e11e306a25ad3d42fd003535e3a45cc53996a08 /src/selector.js
parent47835965bd100a3661d8299d8b769ceeb8b6ce48 (diff)
downloadjquery-cef4b73179b8d2a38cfd5e0730111cc80518311a.tar.gz
jquery-cef4b73179b8d2a38cfd5e0730111cc80518311a.zip
Selector: Bring back querySelectorAll shortcut usage
Due to a faulty IE 8 workaround removal, the fast path qSA mode was skipped when jQuery's find was called on an element node - i.e. in most cases. 😱 Ref gh-4395 Closes gh-4452
Diffstat (limited to 'src/selector.js')
-rw-r--r--src/selector.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/selector.js b/src/selector.js
index c8ff8f5ca..913f7486f 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -218,8 +218,7 @@ function find( selector, context, results, seed ) {
// Take advantage of querySelectorAll
if ( !nonnativeSelectorCache[ selector + " " ] &&
- ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
- nodeType !== 1 ) {
+ ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) {
newSelector = selector;
newContext = context;