Skip to content

Selector: Re-expose jQuery.find.tokenize (3.x version) #5260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

mgol
Copy link
Member

@mgol mgol commented May 29, 2023

Summary

Sizzle.tokenize is 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.

In addition to that, Sizzle tests have been backported for the following APIs:

  • jQuery.find.matchesSelector
  • jQuery.find.matches
  • jQuery.find.compile
  • jQuery.find.select

A new test was also added for jQuery.find.tokenize - even Sizzle was missing one.

Fixes gh-5259
Ref jquery/sizzle#242
Ref gh-5113
Ref gh-4395
Ref gh-4406

main version of this PR: #5263

+8 bytes

Checklist

Sorry, something went wrong.

@mgol mgol added this to the 3.7.1 milestone May 29, 2023
@mgol mgol self-assigned this May 29, 2023
@mgol mgol force-pushed the expose-tokenize branch 3 times, most recently from 1f728e5 to 73f95a8 Compare May 29, 2023 22:37
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgol mgol force-pushed the expose-tokenize branch 2 times, most recently from a4df550 to 767ecb4 Compare May 31, 2023 17:01
mgol added a commit to mgol/jquery that referenced this pull request Jun 1, 2023
`Sizzle.tokenize` is 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.

In addition to that, Sizzle tests have been backported for the following
APIs:
* `jQuery.find.matchesSelector`
* `jQuery.find.matches`
* `jQuery.find.compile`
* `jQuery.find.select`

A new test was also added for `jQuery.find.tokenize` - even Sizzle was
missing one.

Fixes jquerygh-5259
Ref jquerygh-5260
Ref jquery/sizzle#242
Ref jquerygh-5113
Ref jquerygh-4395
Ref jquerygh-4406
@mgol mgol changed the title Selector: Re-expose jQuery.find.tokenize Selector: Re-expose jQuery.find.tokenize (3.x version) Jun 1, 2023
`Sizzle.tokenize` is 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.

In addition to that, Sizzle tests have been backported for the following
APIs:
* `jQuery.find.matchesSelector`
* `jQuery.find.matches`
* `jQuery.find.compile`
* `jQuery.find.select`

A new test was also added for `jQuery.find.tokenize` - even Sizzle was
missing one.

Fixes jquerygh-5259
Ref jquerygh-5263
Ref jquery/sizzle#242
Ref jquerygh-5113
Ref jquerygh-4395
Ref jquerygh-4406
@mgol mgol force-pushed the expose-tokenize branch from 767ecb4 to bfd2f73 Compare June 1, 2023 14:07
mgol added a commit to mgol/jquery that referenced this pull request Jun 1, 2023
`Sizzle.tokenize` is 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.x` line are also added
back:
* `jQuery.find.select`
* `jQuery.find.compile`
* `jQuery.find.setDocument`

In addition to that, Sizzle tests have been backported for the following
APIs:
* `jQuery.find.matchesSelector`
* `jQuery.find.matches`
* `jQuery.find.compile`
* `jQuery.find.select`

A new test was also added for `jQuery.find.tokenize` - even Sizzle was
missing one.

Fixes jquerygh-5259
Ref jquerygh-5260
Ref jquery/sizzle#242
Ref jquerygh-5113
Ref jquerygh-4395
Ref jquerygh-4406
@mgol mgol removed the Needs review label Jun 12, 2023
@mgol mgol merged commit 13a870b into jquery:3.x-stable Jun 12, 2023
@mgol mgol deleted the expose-tokenize branch June 12, 2023 20:58
mgol added a commit that referenced this pull request Jun 12, 2023
`Sizzle.tokenize` is 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.x` line are also added
back:
* `jQuery.find.select`
* `jQuery.find.compile`
* `jQuery.find.setDocument`

In addition to that, Sizzle tests have been backported for the following
APIs:
* `jQuery.find.matchesSelector`
* `jQuery.find.matches`
* `jQuery.find.compile`
* `jQuery.find.select`

A new test was also added for `jQuery.find.tokenize` - even Sizzle was
missing one.

Fixes gh-5259
Closes gh-5263
Ref gh-5260
Ref jquery/sizzle#242
Ref gh-5113
Ref gh-4395
Ref gh-4406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants