🌐 AI搜索 & 代理 主页
Skip to content

Commit dcb9284

Browse files
committed
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 jquerygh-4395 Closes jquerygh-4452
1 parent 47a26eb commit dcb9284

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/selector.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ function find( selector, context, results, seed ) {
228228

229229
// Take advantage of querySelectorAll
230230
if ( !nonnativeSelectorCache[ selector + " " ] &&
231-
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
232-
nodeType !== 1 ) {
231+
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) {
233232

234233
newSelector = selector;
235234
newContext = context;

0 commit comments

Comments
 (0)