jQuery Plugin - jQuery.expr[":"] is now jQuery.expr.pseudos
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6.2k
- Forks
- 468
- PR merge metrics
- No merged PRs in 30d
Description
While updating our site to jQuery v3.1.1 I am having issues with the jQuery plugin using jQuery.expr.
$.expr[':'].uri = uriSizzle;
I believe this should be changed to:
$.expr.pseudos.uri = uriSizzle;
Here's the explanation and recommended change: https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryexpr-is-deprecated-use-jqueryexprpseudos
Didn't see anything regarding jQuery 3 support for URI.js, so I realize it may not be there yet, but thought I would at least submit this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the plugin code containing $.expr[':'].uri = uriSizzle; and compare its behavior under jQuery 3.1.1. Update the selector registration to the documented jQuery 3 form, then verify that the :uri selector still works with the plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100