NewsCrawler.org

jQuery 4.1.0 release notes: Ajax, selector and test changes

Ajax Add the responseURL field to jqXHR (#4339, 5691e03a) Support an alternative completeCallback API for transports (a05c3d73) Core Refactor loops to avoid going behind array bounds (5f8ed054) ...
Image: github.com

Update · : jQuery 3.8.0 was released alongside 4.1.0 to ship fixes and improvements pending on the 3.x-stable branch, after which 3.x will receive only critical security and bug fixes. The new article also adds a new single-object calling convention for AJAX transport complete callbacks, letting new parameters be added without relying on argument order.

jQuery 4.1.0 is a new version of the jQuery JavaScript library, published on GitHub with release notes on 17 November 2026. The Ajax changes add a responseURL field to jqXHR[1] and support an alternative completeCallback API for transports. The Core changes refactor loops to avoid going behind array bounds and replace getElementsByTagName and getElementsByClassName with querySelectorAll. The CSS changes empty a probe table that may be reused and use createElementNS to support XML documents.

The Selector section includes several fixes: a workaround for a Safari 27 regex interpreter bug, a fix for a ReDoS[2] problem in identifier matching, and decoding of invalid escape code points to U+FFFD. It also optimizes duplicate removal in jQuery.uniqueSort and makes quick selection paths stricter.

The Docs section adds TuxCare as a commercial support vendor and adds guidelines for machine-generated contributions. The Tests section adds tests for jQuery.text, for .data() on SVG elements, and for jQuery.ajaxPrefilter and jQuery.ajaxTransport.

Read the original github.comDiscussion

Discussion

Commenters mostly say they are surprised the project is still maintained and still runs on many sites, while noting that vanilla JavaScript now covers most of its old uses. Some think it still suits small enhancements to static sites, but not complex interfaces. One commenter says DataTables 3 dropped its jQuery dependency in July 2026, and another notes that jQuery still does not drop IE11 support.

Sources

Published: First seen: Updated: Читать по-русски

Open as a page