mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
47835965bd
commit
cef4b73179
@ -218,8 +218,7 @@ function find( selector, context, results, seed ) {
|
|||||||
|
|
||||||
// Take advantage of querySelectorAll
|
// Take advantage of querySelectorAll
|
||||||
if ( !nonnativeSelectorCache[ selector + " " ] &&
|
if ( !nonnativeSelectorCache[ selector + " " ] &&
|
||||||
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
|
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) {
|
||||||
nodeType !== 1 ) {
|
|
||||||
|
|
||||||
newSelector = selector;
|
newSelector = selector;
|
||||||
newContext = context;
|
newContext = context;
|
||||||
|
Loading…
Reference in New Issue
Block a user