Just over 4 months after the last version update 3.6.1, jQuery 3.6.2 was released recently. The team says the impetus for this update was the introduction of some new selectors to Chrome.
According to reports, Chrome has recently introduced some new selectors, the most influential of which is:has()
.This is a welcome addition, and welcomed by the jQuery team, but changes in the spec mean that:has()
So-called “forgiving parsing” is used.Essentially, even:has()
The parameters for are invalid, and the browser will not return any results instead of throwing an error.
:has()
When including another jQuery selector extension (eg:has(:contains("Item"))
) or contain itself:has(div:has(a))
case, this is the problematic case. Sizzle relies on errors like this to know when to trust nativequerySelectorAll
and when to run the selector through Sizzle.
The Chrome team implemented a workaround that fixes previous jQuery versions in the vast majority of cases. jQuery has also taken steps to ensure that any permissive parsing does not break future jQuery versions, though previous jQuery versions will still be affected.
See the release announcement for other changes and fixes.
jQuery is a fast, small, and feature-rich JavaScript library. HTML document traversal and manipulation, event handling, animation, Ajax, and more are made easier with an easy-to-use API (available in multiple browsers). Combining versatility and extensibility, jQuery has changed the way millions of people write JavaScript.
#jQuery #released #News Fast Delivery