Selector: Re-expose jQuery.find.{tokenize,select,compile,setDocument} #5263
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Sizzle.tokenizeis an internal Sizzle API, but exposed. As a result,it has historically been available in jQuery via
jQuery.find.tokenize.That got dropped during Sizzle removal; this change restores the API.
Some other APIs so far only exposed on the
3.xline are also addedback:
jQuery.find.selectjQuery.find.compilejQuery.find.setDocumentIn addition to that, Sizzle tests have been backported for the following
APIs:
jQuery.find.matchesSelectorjQuery.find.matchesjQuery.find.compilejQuery.find.selectA new test was also added for
jQuery.find.tokenize- even Sizzle wasmissing one.
Fixes gh-5259
Ref gh-5260
Ref jquery/sizzle#242
Ref gh-5113
Ref gh-4395
Ref gh-4406
3.x-stableversion of this PR: #5260+34 bytes
Checklist