Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcef4b73

Browse files
authored
Selector: Bring back querySelectorAll shortcut usage
Due to a faulty IE 8 workaround removal, the fast path qSA mode was skippedwhen jQuery's find was called on an element node - i.e. in most cases. 😱Refgh-4395Closesgh-4452
1 parent4783596 commitcef4b73

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
@@ -218,8 +218,7 @@ function find( selector, context, results, seed ) {
218218

219219
// Take advantage of querySelectorAll
220220
if(!nonnativeSelectorCache[selector+" "]&&
221-
(!rbuggyQSA||!rbuggyQSA.test(selector))&&
222-
nodeType!==1){
221+
(!rbuggyQSA||!rbuggyQSA.test(selector))){
223222

224223
newSelector=selector;
225224
newContext=context;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp