知Yizhi Daily
← Back to this edition

Conversations

jQuery 4.1.0 Released, Fixing Selector Regular Expression Issues

Edition 2026-11-18 · 08:00 Beijing time

jQuery version 4.1.0 has been released, with updates involving modules such as Ajax, Core, CSS, Data, documentation, selectors, and tests. The selector portion fixes a ReDoS issue in identifier matching and handles compatibility cases including invalid escape code points and a Safari regular-expression interpreter anomaly.

For Ajax, the new version adds a responseURL field to jqXHR and supports an alternative completeCallback API for transports. The Core component refactors loops to avoid crossing array boundaries, while abandoning getElementsByTagName and getElementsByClassName in favor of querySelectorAll. The CSS component adjusts table-style detection and supports XML documents through createElementNS.

Selectors are the focus of this update: the project works around a Safari 27 regular-expression interpreter bug, fixes the runescape regular expression in unescapeSelector, decodes invalid escape code points to U+FFFD, optimizes deduplication in jQuery.uniqueSort, tightens the fast selector path, and fixes ReDoS in identifier matching. For documentation, commercial support vendor TuxCare was added, the spelling of XMLHttpRequest in the README was corrected, a machine-generated contribution guide was added, and the version table was updated. The test module also added coverage for Ajax, XML, animations, SVG data, serialization, and more.

Original sources

Hacker News ↗
Back to this editionOpen interactive reader