3 ms·
I haven't used jQuery in awhile but positional selectors being removed is a pretty big change. FTA Specifically, jQuery 3.4.0 is deprecating :first, :last, :e
by mythrwy 8y ago
I haven't used jQuery in awhile but positional selectors being removed is a pretty big change.
FTA
Specifically, jQuery 3.4.0 is deprecating :first, :last, :eq, :even, :odd, :lt, :gt, and :nth
- panarky 8y ago> Keep in mind we will still support the positional methods, such as .first, .last, and .eq. Anything you can do with positional selectors, you can do with positional methods instead. They perform better anyway.
- hinkley 8y agoExcept half of the point of css selectors was that you strongly encouraged your coworkers to use similar selectors for style and behavior. Now you have two implementations of the same thing and over a long enough time horizon that always breaks.
- masklinn 8y ago> Anything you can do with positional selectors, you can do with positional methods instead. With nowhere near the convenience and clarity of selectors e.g. $("foo bar:first baz qux") or event delegation.
- dustindiamond 8y agoThat would definitely break some stuff for me. Lots of first, last, and even, odd usage.