Skip to content

Tests: Add custom attribute getter tests to the selector module#5568

Merged
mgol merged 1 commit intojquery:mainfrom
mgol:selector-attr-getter-tests
Dec 16, 2024
Merged

Tests: Add custom attribute getter tests to the selector module#5568
mgol merged 1 commit intojquery:mainfrom
mgol:selector-attr-getter-tests

Conversation

@mgol
Copy link
Copy Markdown
Member

@mgol mgol commented Oct 15, 2024

Summary

Sizzle & the 3.x-stable branch have tests adding a custom attribute getter to attrHandle and checking if selection takes it into account. attrHandle was removed from the 4.x line so the tests were not ported to the main branch, but the 4.x line takes standard jQuery attribute getters into account instead and we should test for that.

Backport the 3.x-stable selector tests for custom attribute getters, changing jQuery.expr.attrHandle to jQuery.attrHooks.

Checklist

Sizzle & the `3.x-stable` branch have tests adding a custom attribute getter
to `attrHandle` and checking if selection takes it into account. `attrHandle`
was removed from the `4.x` line so the tests were not ported to the `main`
branch, but the `4.x` line takes standard jQuery attribute getters into account
instead and we should test for that.

Backport the `3.x-stable` selector tests for custom attribute getters, changing
`jQuery.expr.attrHandle` to `jQuery.attrHooks`.
@mgol mgol merged commit 4466770 into jquery:main Dec 16, 2024
@mgol mgol deleted the selector-attr-getter-tests branch December 16, 2024 18:00
@mgol mgol added this to the 4.0.0 milestone Dec 16, 2024
@mgol mgol removed the Needs review label Dec 16, 2024
@jquery jquery deleted a comment from Q015531637 Jan 2, 2025
@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.

2 participants