api.jquery.com icon indicating copy to clipboard operation
api.jquery.com copied to clipboard

Add Sizzle wiki as API page

Open mgol opened this issue 2 years ago • 3 comments

The main page should document jQuery.expr.pseudos but we should also have shorter pages for jQuery.expr[ ":" ] & jQuery.expr.filters as its deprecated aliases.

Sizzle docs can be a starting point as jQuery.expr is an alias of Sizzle.selectors in jQuery <3.7.0: https://github.com/jquery/sizzle/wiki#sizzleselectorspseudosname--function-elem--

Note: Make sure legacy pseudos are documented as deprecated & removed in 4.0 (see https://github.com/jquery/jquery/pull/5137)

mgol avatar Apr 24 '23 23:04 mgol

I don't know if it should. While the support probably can't go away, custom pseudos aren't necessarily something I'd want to encourage. It's better to use .filter() after selection.

timmywil avatar Apr 25 '23 14:04 timmywil

OK, let's discuss further at the team meeting. 🙂 cc @gibson042

mgol avatar Apr 25 '23 15:04 mgol

We're going to change this issue to include the Sizzle wiki as its own API page, rather than document everything separately.

timmywil avatar May 22 '23 16:05 timmywil