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

Conversation

@mgol
Copy link
Member

@mgol mgol commented Jun 1, 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.

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
Ref gh-5260
Ref jquery/sizzle#242
Ref gh-5113
Ref gh-4395
Ref gh-4406

3.x-stable version of this PR: #5260

+34 bytes

Checklist

@mgol mgol added this to the 4.0.0 milestone Jun 1, 2023
@mgol mgol self-assigned this Jun 1, 2023
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-5263
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,select,compile,setDocument} 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 force-pushed the expose-tokenize-v4 branch from fa84f00 to 7c6a45b Compare June 1, 2023 14:10
@mgol mgol removed the Needs review label Jun 12, 2023
@mgol mgol merged commit 338de35 into jquery:main Jun 12, 2023
@mgol mgol deleted the expose-tokenize-v4 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.

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-5260
Ref gh-5263
Ref jquery/sizzle#242
Ref gh-5113
Ref gh-4395
Ref gh-4406
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

Re-expose jQuery.find.tokenize

2 participants