← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

jQuery 4.1.0 Released with AJAX, Core, CSS, and Selector Improvements

🔄 Updated 4d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Adds `responseURL` to jqXHR for AJAX requests.
  • Replaces `getElementsByTagName/ClassName` with `querySelectorAll`.
  • Includes CSS fixes for XML documents and table style probes.
  • Optimizes `jQuery.uniqueSort` and fixes selector regex issues.

AJAX and Core Updates

jQuery 4.1.0 introduces an important update to its AJAX module by adding the `responseURL` field to the jqXHR object. This provides more detailed information about the response source. Additionally, the release supports an alternative `completeCallback` API for transports, offering more flexibility in handling AJAX requests.

In the core module, loops have been refactored to prevent going beyond array bounds, improving stability. A significant change is the deprecation of `getElementsByTagName` and `getElementsByClassName` in favor of `querySelectorAll`, aligning with modern browser APIs and potentially improving performance.

CSS and Selector Enhancements

The CSS module received updates to empty the `computeTableStyleTests` probe table when it might be reused, preventing potential issues. Support for XML documents has been improved by using `createElementNS` for proper element creation within XML contexts.

Selector improvements include a workaround for a Safari 27 regex interpreter bug and fixes for the `runescape` regex in `unescapeSelector`. The release also optimizes `jQuery.uniqueSort` for duplicate removal and addresses a ReDoS vulnerability in identifier matching, enhancing security and performance.

Documentation and Testing

Documentation updates include adding TuxCare as a new commercial support vendor and guidelines for machine-generated contributions. Various links and spelling errors in the README have also been corrected. The release also includes numerous new unit tests for features like `jQuery.text`, `.data()` on SVG elements, and AJAX prefilters/transports, increasing test coverage and reliability.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 21

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

jQuery 4.1.0 has been released, introducing new features and fixes across various modules. Key updates include adding the `responseURL` field to jqXHR, refactoring core loops, and using `querySelectorAll` instead of `getElementsByTagName/ClassName`.