:lt() and :gt() selectors
See original GitHub issueIn the Jsoup we have :lt(n)
and :gt(n)
selectors to select elements with index little/greater than n. I think it is nice to have these selectors alternatives in the soupsieve.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Chaining jQuery selectors :lt and :gt - Stack Overflow
If I do this : $('table tr:gt(3):lt(6)') , shall I receive 3 or 6 elements at the end, and why? Are all selectors...
Read more >jQuery :gt() Selector - W3Schools
The :gt() selector selects elements with an index number higher than a specified number. The index numbers start at 0. This is mostly...
Read more >:gt() Selector | jQuery API Documentation
As of jQuery 3.4, the :gt pseudo-class is deprecated. Remove it from your selectors and filter the results later using .slice() . For...
Read more >jQuery :lt() selector - javatpoint
We can use the :gt() selector to select the elements having a larger index value than the specified index. Syntax. $(":lt(index)").
Read more >jQuery Full Tutorial in Hindi - YouTube
jQuery gt() lt() Selector | jQuery Selector | jQuery Full Tutorial in Hindi. 51 views 3 months ago. Sahosoft Solutions. Sahosoft Solutions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the reasoning stated above, I think we are going to pass on these selectors.
@gir-bot add S: wontfix
Yeah. When I first created soupsieve, I think I looked at some similar selectors before but came to the same conclusion. While I guess the shorthand is “more” convenient, it just didn’t seem like it added enough to warrant including them. To be honest, if I implemented it, it would end up being basically an alias for what I showed above, and that is why I think I would probably consider not doing them. It’s just quite trivial to do the same thing with
:nth-
selectors.