{"article":{"slug":"jquery-4-1-0-and-3-8-0-released-passing-the-torch","title":"jQuery 4.1.0 and 3.8.0 Released: Passing the Torch","subtitle":null,"summary":"The jQuery team releases jQuery 4.1.0, the first minor release of the 4.x line, alongside 3.8.0, a send-off release for the 3.x branch, which will now get only critical security and bug fixes; users are urged to upgrade to 4.x.","content_type":"changelog","language":"en","canonical_url":"https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/","author":{"name":"Timmy Willison","url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"jQuery","url":null,"listing_slug":null,"listing":null},"topics":[{"name":"javascript","slug":"javascript","url":"https://listedarticles.com/topics/javascript"},{"name":"web-development","slug":"web-development","url":"https://listedarticles.com/topics/web-development"},{"name":"changelog","slug":"changelog","url":"https://listedarticles.com/topics/changelog"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":1496,"reading_minutes":7,"published_at":"2026-11-17T19:16:09.000Z","added_at":"2026-11-18T04:55:14.109Z","updated_at":"2026-11-18T04:55:14.109Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/jquery-4-1-0-and-3-8-0-released-passing-the-torch","markdown_url":"https://listedarticles.com/articles/jquery-4-1-0-and-3-8-0-released-passing-the-torch.md","example":false,"citation":"Timmy Willison, jQuery. \"jQuery 4.1.0 and 3.8.0 Released: Passing the Torch.\" 17 Nov 2026. https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/ (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/"},"body_markdown":"# jQuery 4.1.0 and 3.8.0 Released: Passing the Torch\n\nPosted on [November 17, 2026](https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/ \"2:16 pm\")  by  [Timmy Willison](https://blog.jquery.com/author/timmywil/ \"View all posts by Timmy Willison\")\n\n---\n\njQuery 4.1.0 has arrived! And it brought a friend. Alongside the first minor release of the 4.x line, we're also releasing jQuery 3.8.0. A word of caution: 3.8.0 exists to release the fixes and improvements that have been pending on the `3.x-stable` branch for the past few years, some of which you may recognize from the jQuery 4.0.0 release. It is a send-off, not a comeback. Going forward, the 3.x branch will only receive critical security and bug fixes. If you haven't yet made the jump to 4.x, we encourage you to do so — we have an [upgrade guide](https://jquery.com/upgrade-guide/4.0/) and the [jQuery Migrate plugin](https://github.com/jquery/jquery-migrate/) ready to help, and most users will be able to upgrade with minimal changes.\n\nAs usual, the releases are available on [our CDN](https://jquery.com/download/) and the npm package manager. Other third party CDNs will probably have them available soon as well, but remember that we don't control their release schedules and they will need some time. Here are the highlights.\n\n## In both 4.1.0 and 3.8.0\n\nA few changes landed on both branches, so you get these no matter which version you're on.\n\n### A new API for AJAX transport complete callbacks\n\nCustom AJAX transports have long received a `completeCallback` with positional arguments:\n\n```\nfunction( status, statusText, responses, headers ) {}\n```\n\nTransports can now instead invoke the callback with a single object:\n\n```\nfunction( { status, statusText, responses, headers } ) {}\n```\n\nThis makes it possible for us to add new parameters in the future without relying on their order, and for transports to provide them selectively. In fact, 4.1.0 already takes advantage of it — see `responseURL` below.\n\n### Selector: ReDoS fix in identifier matching\n\nThe regular expression jQuery uses to match identifiers in selectors was vulnerable to catastrophic backtracking; a long chain of hex escapes followed by an invalid character — for example, in an attribute selector — could hang the page. The production now explicitly excludes digits & hex characters where the spec says it should, bringing us closer to spec and eliminating the ReDoS.\n\n### Selector: loose document comparisons everywhere\n\nIE & Edge Legacy sometimes throw on strict document comparisons (`===`) but not on loose ones (`==`). We switched most of these comparisons years ago, but a few leftovers remained in the selector code. They've now all been converted, avoiding some rare crashes in those browsers.\n\n## What else is new in 4.1.0\n\n### jqXHR gains responseURL\n\n`jqXHR` objects now expose `responseURL` — the final URL of the request after any redirects followed by the browser. Following the existing `responseText`/`responseXML`/`responseJSON` pattern, it is only set when the transport can report it: modern-browser XHR provides it, while IE 11 and the script & JSONP transports do not.\n\n### Serialize form-associated custom elements\n\nForm-associated custom elements — custom elements registered with `formAssociated = true` — now serialize correctly with `.serialize()` and `.serializeArray()`. Elements that appear in `form.elements` are trusted to be submittable rather than being filtered out by a tag name check.\n\n### CSS methods work in XML documents\n\nIn non-XHTML XML documents, such as XSLT-transformed documents, elements created with `document.createElement` land in the XML namespace and have no `style` property, which broke jQuery's CSS support tests. jQuery now uses `createElementNS` with the XHTML namespace internally, so `.css()` and friends behave in these documents.\n\n### querySelectorAll everywhere\n\njQuery no longer uses `getElementsByTagName` or `getElementsByClassName` internally, relying on `querySelectorAll` instead. In today's browsers, `qSA` is on par with or faster than the old methods, and returns a static list rather than a live collection that we had to snapshot. The switch also fixes some long-standing bugs, including MathML elements not being found by lowercase tag names on cloned nodes in IE 11, selectors with leading combinators not working on document fragments, and selection by tag names containing less common symbols such as dots.\n\nRelated selector work makes the quick selection paths stricter about what counts as a simple tag or class selector — with a fallback to regular selection when `qSA` throws — and invalid escape sequences in selectors are now decoded to U+FFFD, the replacement character, as the CSS specification requires.\n\n### Faster uniqueSort\n\n`jQuery.uniqueSort` removes duplicates with a single-pass, two-pointer compaction instead of repeated splices, taking the duplicate removal from O(N²) time and O(N) extra space to O(N) time and constant space. Behavior and ordering are unchanged; large disconnected sets just get there faster.\n\n## What's in 3.8.0\n\nAgain, most of what's in 3.8.0 has been sitting on the branch for a while, and much of it will look familiar if you read the [jQuery 4.0.0 release post](https://blog.jquery.com/2026/01/17/jquery-4-0-0/). But there are a few things specific to 3.x.\n\n### Support for hidden=\"until-found\"\n\nThe `hidden` attribute used to be a boolean attribute, but it has since gained the `until-found` value. jQuery 3.x normalized boolean attributes in a way that clobbered that value; `.attr( \"hidden\", \"until-found\" )` now sets it as-is. jQuery 4.x changed how boolean attributes are handled precisely to avoid this class of problem, so no change was needed there.\n\n### Deprecations to smooth the road to 4.x\n\nTwo sets of APIs that were removed in jQuery 4.0.0 are now formally deprecated in 3.x, which means the [jQuery Migrate plugin](https://github.com/jquery/jquery-migrate/) can warn you about them before you upgrade:\n\n- The `push`, `sort` & `splice` Array methods on the jQuery prototype. These were always meant for internal use and jQuery itself hasn't used them since Sizzle was inlined. If you need the same behavior, `$elems.push( elem )` can be replaced with `[].push.call( $elems, elem )`.\n- `jQuery.expr[ \":\" ]` and `jQuery.expr.filters`, which have been documented as deprecated since 3.0.0 but never made their way into the deprecated module. Use `jQuery.expr.pseudos` instead.\n\n### Backported fixes\n\n3.8.0 also picks up a number of fixes that already shipped in jQuery 4.0.0, including support for self-removing scripts passed to `.html()`, a fix for `jQuery.cleanData` skipping elements during cleanup, correct dimensions for table `<col>` elements, more robust native event handling in `leverageNative`, and support test fixes for pages under CSS zoom and initially hidden iframes.\n\n## Download\n\nYou can get the files from the jQuery CDN, or link to them directly:\n\n<https://code.jquery.com/jquery-4.1.0.js>\n\n<https://code.jquery.com/jquery-4.1.0.min.js>\n\n<https://code.jquery.com/jquery-3.8.0.js>\n\n<https://code.jquery.com/jquery-3.8.0.min.js>\n\nYou can also get this release from npm:\n\n`npm install jquery@4.1.0`\n\n`npm install jquery@3.8.0`\n\nThe slim builds are available as well:\n\n<https://code.jquery.com/jquery-4.1.0.slim.js>\n\n<https://code.jquery.com/jquery-4.1.0.slim.min.js>\n\n<https://code.jquery.com/jquery-3.8.0.slim.js>\n\n<https://code.jquery.com/jquery-3.8.0.slim.min.js>\n\nInformation on all the ways to get jQuery is available at <https://jquery.com/download/>.\n\nOne more time for the folks in the back: jQuery 3.8.0 is the last planned feature release on the 3.x branch. From here on, 3.x will only receive critical fixes. jQuery 4.x is where active development happens, and it's ready for you.\n\n## Thanks\n\nThank you to all of you who participated in these releases by submitting patches, reporting bugs, or testing, including [ac-mmi](https://github.com/ac-mmi), [Apoorv Darshan](https://github.com/apoorvdarshan), [Richard Gibson](https://github.com/gibson042), [Michał Gołębiowski-Owczarek](https://github.com/mgol), [J.Son](https://github.com/xwxtwd), [Naveed Khan](https://github.com/rootvector2), [metsw24-max](https://github.com/metsw24-max), [neogy-akash](https://github.com/neogy-akash), [orbisai0security](https://github.com/orbisai0security), [Stephen Sigwart](https://github.com/ssigwart), [studystill](https://github.com/studystill), [Timo Tijhof](https://github.com/Krinkle), [TomTensor](https://github.com/tommyhgunz14), [서울민트초코](https://github.com/minirang), and the whole jQuery team.\n\n## Changelogs\n\n#### [4.1.0](https://github.com/jquery/jquery/compare/4.0.0...4.1.0)\n\n#### Ajax\n\n- Add the `responseURL` field to jqXHR ([#4339](https://github.com/jquery/jquery/issues/4339), [5691e03a](https://github.com/jquery/jquery/commit/5691e03ae26542732a7719d86357f0eabb2d489b))\n- Support an alternative completeCallback API for transports ([a05c3d73](https://github.com/jquery/jquery/commit/a05c3d736aef56fbdfde66d8fa56245fb5d7524f))\n\n#### Core\n\n- Refactor loops to avoid going behind array bounds ([5f8ed054](https://github.com/jquery/jquery/commit/5f8ed05417525bacc6a597a334a64835e2f9985b))\n- Drop getElementsBy{Tag,Class}Name in favor of querySelectorAll ([#3642](https://github.com/jquery/jquery/issues/3642), [53a2bcf9](https://github.com/jquery/jquery/commit/53a2bcf984ec5d1955d35ea9565e847cbeea0200))\n\n#### CSS\n\n- Empty the computeTableStyleTests probe table when it might be reused ([#5932](https://github.com/jquery/jquery/issues/5932), [f37226f0](https://github.com/jquery/jquery/commit/f37226f0c7fce6c2411895970127739e3d8a0dc0))\n- Use createElementNS to support XML documents ([#4730](https://github.com/jquery/jquery/issues/4730), [dcb31ae8](https://github.com/jquery/jquery/commit/dcb31ae8dd8fcc325a774e3aec0d12d1636f2f9f))\n\n#### Data\n\n- Shave off some bytes ([eb9acfe9](https://github.com/jquery/jquery/commit/eb9acfe9debc6ec3aa6f40233f432e1a56801238))\n\n#### Docs\n\n- Add a new commercial support vendor: TuxCare ([b75c1fef](https://github.com/jquery/jquery/commit/b75c1fef3af900cb2a202b2ed5a0ad11d731a4e3))\n- Fix spelling of XMLHttpRequest in README (#5903) ([71c0dd14](https://github.com/jquery/jquery/commit/71c0dd14927c41d1aab5ce5ef2687d7808a4186b))\n- Add guidelines for machine-generated contributions ([51eb576c](https://github.com/jquery/jquery/commit/51eb576cca6ffce252dc152bf8e91d5230a0d887))\n- Update the jQuery NES HeroDevs link in README (#5853) ([dd7b28f4](https://github.com/jquery/jquery/commit/dd7b28f450e43ecfa736aaaacee6944435dba1cb))\n- Update active version table ([fef45254](https://github.com/jquery/jquery/commit/fef45254c45d65ecdc87f7f2c2d4e62caf4c1730))\n- update README with 4.0 release ([#5781](https://github.com/jquery/jquery/issues/5781), [5bffcc1a](https://github.com/jquery/jquery/commit/5bffcc1afa9088e904c742d80e39c380c8d59aef))\n\n#### Selector\n\n- Work around a Safari 27 regex interepreter bug ([b557a8c4](https://github.com/jquery/jquery/commit/b557a8c446cc3464fd88741e00916985439e5443))\n- Fix the runescape regex in unescapeSelector ([e77f87c8](https://github.com/jquery/jquery/commit/e77f87c89ea78ffa086d0cf2778cdab652507e55))\n- Decode invalid escape code points to U+FFFD (#5845) ([7e1efd77](https://github.com/jquery/jquery/commit/7e1efd77598a527c67d2a674a1259787f7e441fd))\n- Optimize jQuery.uniqueSort duplicate removal ([35789e76](https://github.com/jquery/jquery/commit/35789e7687d31512072098ce0d826079904938d2))\n- Be more strict in quick selection paths ([a104324d](https://github.com/jquery/jquery/commit/a104324d7a9808250bed64e59ecafaaff8de35e4))\n- Fix ReDoS in identifier matching ([d41cf7dd](https://github.com/jquery/jquery/commit/d41cf7ddbdd1c48a0a4c577026f83731c451073e))\n- Use loose document comparisons everywhere ([74439453](https://github.com/jquery/jquery/commit/74439453991ba9b8f9114a3d4735891e94330135))\n\n#### Serialize\n\n- Support form-associated custom elements ([#5245](https://github.com/jquery/jquery/issues/5245), [680c320c](https://github.com/jquery/jquery/commit/680c320c69cba9de68658186f2a6d96ea090b2dc))\n\n#### [3.8.0](https://github.com/jquery/jquery/compare/3.7.1...3.8.0)\n\n#### Ajax\n\n- Support an alternative completeCallback API for transports ([43b8652b](https://github.com/jquery/jquery/commit/43b8652b020fb26920d250ca917ee2ecc298cd3f))\n\n#### Attributes\n\n- Support the `until-found` value for the `hidden` attribute ([85290c59](https://github.com/jquery/jquery/commit/85290c59724db69a3967885892d4305d76de058f))\n\n#### Core\n\n- Formally deprecate push/sort/splice ([50d9a8dc](https://github.com/jquery/jquery/commit/50d9a8dc7fd9e93e09827e4a60772c617d1d5e28))\n- Simplify code post browser support reduction ([6fe88690](https://github.com/jquery/jquery/commit/6fe88690a336a883ea310da76762e5a456dc487a))\n\n#### CSS\n\n- Empty the computeTableStyleTests probe table when it might be reused (3.x) ([#5932](https://github.com/jquery/jquery/issues/5932), [4bb01875](https://github.com/jquery/jquery/commit/4bb018759ef2c285fba667a63295f67469b68d2f))\n- Fix dimensions of table `<col>` elements ([#5628](https://github.com/jquery/jquery/issues/5628), [3f70fbc7](https://github.com/jquery/jquery/commit/3f70fbc76241051e83642de8afc64e0ff381223c))\n- Tests: Fix tests & support tests under CSS Zoom (3.x version) ([#5489](https://github.com/jquery/jquery/issues/5489), [29a9030c](https://github.com/jquery/jquery/commit/29a9030c78a02d5c3b41b66283fe7b5325ac11a0))\n- Fix reliableTrDimensions test for initially hidden iframes (3.x) ([4e989805](https://github.com/jquery/jquery/commit/4e989805236ce6401bfc7a08913957960bd71887))\n- Fix support test results for initially hidden iframes ([ac68b21f](https://github.com/jquery/jquery/commit/ac68b21fa0554bb63e69a81cf635428ec19c5fa8))\n\n#### Data\n\n- Shave off some bytes ([000feef3](https://github.com/jquery/jquery/commit/000feef3286760f6959ad8409e3229eb899b6c9e))\n\n#### Docs\n\n- Fix some minor issues in comments ([b57c4b51](https://github.com/jquery/jquery/commit/b57c4b51dc0b01085a0686cc3a0f3c5354aba41f))\n- Update CONTRIBUTING.md ([d41f0cd9](https://github.com/jquery/jquery/commit/d41f0cd9821126835bfe72dabb21767224cd7ea7))\n- Update remaining HTTP URLs to HTTPS ([5d5872bd](https://github.com/jquery/jquery/commit/5d5872bd58ed671ccebbd05ca67d1963bc8a8f45))\n\n#### Event\n\n- Increase robustness of an inner native event in leverageNative ([#5459](https://github.com/jquery/jquery/issues/5459), [37bded35](https://github.com/jquery/jquery/commit/37bded35229d4753e2f05290e9304011ea2cbade))\n\n#### Manipulation\n\n- Make jQuery.cleanData not skip elements during cleanup ([#5214](https://github.com/jquery/jquery/issues/5214), [752e9119](https://github.com/jquery/jquery/commit/752e9119abea4524d72f48fef03ffda0e255eb33))\n- Generalize a test to support IE ([ab0444dd](https://github.com/jquery/jquery/commit/ab0444dd644217786df96a99fc5070c879ce1f9c))\n- Support $el.html(selfRemovingScript) ([#5377](https://github.com/jquery/jquery/issues/5377), [cbc15c9c](https://github.com/jquery/jquery/commit/cbc15c9c31fa855304b4b63c13a0c8fb0ef61275))\n\n#### Selector\n\n- Work around a Safari 27 regex interepreter bug ([8df0f0d6](https://github.com/jquery/jquery/commit/8df0f0d6bbd0299147b4c8de2aa7396540162133))\n- Fix the runescape regex in unescapeSelector ([c4a98588](https://github.com/jquery/jquery/commit/c4a98588f04db3b569b7cff704a104556b39b63d))\n- Fix ReDoS in identifier matching ([dd23807d](https://github.com/jquery/jquery/commit/dd23807d7fdd8bdb85e7a486c9ab6f2cd40fd70a))\n- Use loose document comparisons everywhere (3.x) ([61bf6c6f](https://github.com/jquery/jquery/commit/61bf6c6f8674518feef20900c8fe54d7e26c121e))\n- Properly deprecate `jQuery.expr[ \":\" ]`/`jQuery.expr.filters` ([5eab9df7](https://github.com/jquery/jquery/commit/5eab9df7b6a8a64680390b01b495975c22f4bf2d))\n\n","body_html":"<h1 id=\"jquery-4-1-0-and-3-8-0-released-passing-the-torch\">jQuery 4.1.0 and 3.8.0 Released: Passing the Torch</h1>\n<p>Posted on <a href=\"https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/\" title=\"2:16 pm\" rel=\"nofollow ugc noopener\">November 17, 2026</a>  by  <a href=\"https://blog.jquery.com/author/timmywil/\" title=\"View all posts by Timmy Willison\" rel=\"nofollow ugc noopener\">Timmy Willison</a></p>\n<hr />\n<p>jQuery 4.1.0 has arrived! And it brought a friend. Alongside the first minor release of the 4.x line, we&#39;re also releasing jQuery 3.8.0. A word of caution: 3.8.0 exists to release the fixes and improvements that have been pending on the <code>3.x-stable</code> branch for the past few years, some of which you may recognize from the jQuery 4.0.0 release. It is a send-off, not a comeback. Going forward, the 3.x branch will only receive critical security and bug fixes. If you haven&#39;t yet made the jump to 4.x, we encourage you to do so — we have an <a href=\"https://jquery.com/upgrade-guide/4.0/\" rel=\"nofollow ugc noopener\">upgrade guide</a> and the <a href=\"https://github.com/jquery/jquery-migrate/\" rel=\"nofollow ugc noopener\">jQuery Migrate plugin</a> ready to help, and most users will be able to upgrade with minimal changes.</p>\n<p>As usual, the releases are available on <a href=\"https://jquery.com/download/\" rel=\"nofollow ugc noopener\">our CDN</a> and the npm package manager. Other third party CDNs will probably have them available soon as well, but remember that we don&#39;t control their release schedules and they will need some time. Here are the highlights.</p>\n<h2 id=\"in-both-4-1-0-and-3-8-0\">In both 4.1.0 and 3.8.0</h2>\n<p>A few changes landed on both branches, so you get these no matter which version you&#39;re on.</p>\n<h3 id=\"a-new-api-for-ajax-transport-complete-callbacks\">A new API for AJAX transport complete callbacks</h3>\n<p>Custom AJAX transports have long received a <code>completeCallback</code> with positional arguments:</p>\n<pre><code>function( status, statusText, responses, headers ) {}</code></pre>\n<p>Transports can now instead invoke the callback with a single object:</p>\n<pre><code>function( { status, statusText, responses, headers } ) {}</code></pre>\n<p>This makes it possible for us to add new parameters in the future without relying on their order, and for transports to provide them selectively. In fact, 4.1.0 already takes advantage of it — see <code>responseURL</code> below.</p>\n<h3 id=\"selector-redos-fix-in-identifier-matching\">Selector: ReDoS fix in identifier matching</h3>\n<p>The regular expression jQuery uses to match identifiers in selectors was vulnerable to catastrophic backtracking; a long chain of hex escapes followed by an invalid character — for example, in an attribute selector — could hang the page. The production now explicitly excludes digits &amp; hex characters where the spec says it should, bringing us closer to spec and eliminating the ReDoS.</p>\n<h3 id=\"selector-loose-document-comparisons-everywhere\">Selector: loose document comparisons everywhere</h3>\n<p>IE &amp; Edge Legacy sometimes throw on strict document comparisons (<code>===</code>) but not on loose ones (<code>==</code>). We switched most of these comparisons years ago, but a few leftovers remained in the selector code. They&#39;ve now all been converted, avoiding some rare crashes in those browsers.</p>\n<h2 id=\"what-else-is-new-in-4-1-0\">What else is new in 4.1.0</h2>\n<h3 id=\"jqxhr-gains-responseurl\">jqXHR gains responseURL</h3>\n<p><code>jqXHR</code> objects now expose <code>responseURL</code> — the final URL of the request after any redirects followed by the browser. Following the existing <code>responseText</code>/<code>responseXML</code>/<code>responseJSON</code> pattern, it is only set when the transport can report it: modern-browser XHR provides it, while IE 11 and the script &amp; JSONP transports do not.</p>\n<h3 id=\"serialize-form-associated-custom-elements\">Serialize form-associated custom elements</h3>\n<p>Form-associated custom elements — custom elements registered with <code>formAssociated = true</code> — now serialize correctly with <code>.serialize()</code> and <code>.serializeArray()</code>. Elements that appear in <code>form.elements</code> are trusted to be submittable rather than being filtered out by a tag name check.</p>\n<h3 id=\"css-methods-work-in-xml-documents\">CSS methods work in XML documents</h3>\n<p>In non-XHTML XML documents, such as XSLT-transformed documents, elements created with <code>document.createElement</code> land in the XML namespace and have no <code>style</code> property, which broke jQuery&#39;s CSS support tests. jQuery now uses <code>createElementNS</code> with the XHTML namespace internally, so <code>.css()</code> and friends behave in these documents.</p>\n<h3 id=\"queryselectorall-everywhere\">querySelectorAll everywhere</h3>\n<p>jQuery no longer uses <code>getElementsByTagName</code> or <code>getElementsByClassName</code> internally, relying on <code>querySelectorAll</code> instead. In today&#39;s browsers, <code>qSA</code> is on par with or faster than the old methods, and returns a static list rather than a live collection that we had to snapshot. The switch also fixes some long-standing bugs, including MathML elements not being found by lowercase tag names on cloned nodes in IE 11, selectors with leading combinators not working on document fragments, and selection by tag names containing less common symbols such as dots.</p>\n<p>Related selector work makes the quick selection paths stricter about what counts as a simple tag or class selector — with a fallback to regular selection when <code>qSA</code> throws — and invalid escape sequences in selectors are now decoded to U+FFFD, the replacement character, as the CSS specification requires.</p>\n<h3 id=\"faster-uniquesort\">Faster uniqueSort</h3>\n<p><code>jQuery.uniqueSort</code> removes duplicates with a single-pass, two-pointer compaction instead of repeated splices, taking the duplicate removal from O(N²) time and O(N) extra space to O(N) time and constant space. Behavior and ordering are unchanged; large disconnected sets just get there faster.</p>\n<h2 id=\"what-s-in-3-8-0\">What&#39;s in 3.8.0</h2>\n<p>Again, most of what&#39;s in 3.8.0 has been sitting on the branch for a while, and much of it will look familiar if you read the <a href=\"https://blog.jquery.com/2026/01/17/jquery-4-0-0/\" rel=\"nofollow ugc noopener\">jQuery 4.0.0 release post</a>. But there are a few things specific to 3.x.</p>\n<h3 id=\"support-for-hidden-until-found\">Support for hidden=&quot;until-found&quot;</h3>\n<p>The <code>hidden</code> attribute used to be a boolean attribute, but it has since gained the <code>until-found</code> value. jQuery 3.x normalized boolean attributes in a way that clobbered that value; <code>.attr( &quot;hidden&quot;, &quot;until-found&quot; )</code> now sets it as-is. jQuery 4.x changed how boolean attributes are handled precisely to avoid this class of problem, so no change was needed there.</p>\n<h3 id=\"deprecations-to-smooth-the-road-to-4-x\">Deprecations to smooth the road to 4.x</h3>\n<p>Two sets of APIs that were removed in jQuery 4.0.0 are now formally deprecated in 3.x, which means the <a href=\"https://github.com/jquery/jquery-migrate/\" rel=\"nofollow ugc noopener\">jQuery Migrate plugin</a> can warn you about them before you upgrade:</p>\n<ul><li>The <code>push</code>, <code>sort</code> &amp; <code>splice</code> Array methods on the jQuery prototype. These were always meant for internal use and jQuery itself hasn&#39;t used them since Sizzle was inlined. If you need the same behavior, <code>$elems.push( elem )</code> can be replaced with <code>[].push.call( $elems, elem )</code>.</li><li><code>jQuery.expr[ &quot;:&quot; ]</code> and <code>jQuery.expr.filters</code>, which have been documented as deprecated since 3.0.0 but never made their way into the deprecated module. Use <code>jQuery.expr.pseudos</code> instead.</li></ul>\n<h3 id=\"backported-fixes\">Backported fixes</h3>\n<p>3.8.0 also picks up a number of fixes that already shipped in jQuery 4.0.0, including support for self-removing scripts passed to <code>.html()</code>, a fix for <code>jQuery.cleanData</code> skipping elements during cleanup, correct dimensions for table <code>&lt;col&gt;</code> elements, more robust native event handling in <code>leverageNative</code>, and support test fixes for pages under CSS zoom and initially hidden iframes.</p>\n<h2 id=\"download\">Download</h2>\n<p>You can get the files from the jQuery CDN, or link to them directly:</p>\n<p><a href=\"https://code.jquery.com/jquery-4.1.0.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-4.1.0.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-4.1.0.min.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-4.1.0.min.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-3.8.0.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-3.8.0.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-3.8.0.min.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-3.8.0.min.js</a></p>\n<p>You can also get this release from npm:</p>\n<p><code>npm install jquery@4.1.0</code></p>\n<p><code>npm install jquery@3.8.0</code></p>\n<p>The slim builds are available as well:</p>\n<p><a href=\"https://code.jquery.com/jquery-4.1.0.slim.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-4.1.0.slim.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-4.1.0.slim.min.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-4.1.0.slim.min.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-3.8.0.slim.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-3.8.0.slim.js</a></p>\n<p><a href=\"https://code.jquery.com/jquery-3.8.0.slim.min.js\" rel=\"nofollow ugc noopener\">https://code.jquery.com/jquery-3.8.0.slim.min.js</a></p>\n<p>Information on all the ways to get jQuery is available at <a href=\"https://jquery.com/download/\" rel=\"nofollow ugc noopener\">https://jquery.com/download/</a>.</p>\n<p>One more time for the folks in the back: jQuery 3.8.0 is the last planned feature release on the 3.x branch. From here on, 3.x will only receive critical fixes. jQuery 4.x is where active development happens, and it&#39;s ready for you.</p>\n<h2 id=\"thanks\">Thanks</h2>\n<p>Thank you to all of you who participated in these releases by submitting patches, reporting bugs, or testing, including <a href=\"https://github.com/ac-mmi\" rel=\"nofollow ugc noopener\">ac-mmi</a>, <a href=\"https://github.com/apoorvdarshan\" rel=\"nofollow ugc noopener\">Apoorv Darshan</a>, <a href=\"https://github.com/gibson042\" rel=\"nofollow ugc noopener\">Richard Gibson</a>, <a href=\"https://github.com/mgol\" rel=\"nofollow ugc noopener\">Michał Gołębiowski-Owczarek</a>, <a href=\"https://github.com/xwxtwd\" rel=\"nofollow ugc noopener\">J.Son</a>, <a href=\"https://github.com/rootvector2\" rel=\"nofollow ugc noopener\">Naveed Khan</a>, <a href=\"https://github.com/metsw24-max\" rel=\"nofollow ugc noopener\">metsw24-max</a>, <a href=\"https://github.com/neogy-akash\" rel=\"nofollow ugc noopener\">neogy-akash</a>, <a href=\"https://github.com/orbisai0security\" rel=\"nofollow ugc noopener\">orbisai0security</a>, <a href=\"https://github.com/ssigwart\" rel=\"nofollow ugc noopener\">Stephen Sigwart</a>, <a href=\"https://github.com/studystill\" rel=\"nofollow ugc noopener\">studystill</a>, <a href=\"https://github.com/Krinkle\" rel=\"nofollow ugc noopener\">Timo Tijhof</a>, <a href=\"https://github.com/tommyhgunz14\" rel=\"nofollow ugc noopener\">TomTensor</a>, <a href=\"https://github.com/minirang\" rel=\"nofollow ugc noopener\">서울민트초코</a>, and the whole jQuery team.</p>\n<h2 id=\"changelogs\">Changelogs</h2>\n<h4 id=\"4-1-0\"><a href=\"https://github.com/jquery/jquery/compare/4.0.0...4.1.0\" rel=\"nofollow ugc noopener\">4.1.0</a></h4>\n<h4 id=\"ajax\">Ajax</h4>\n<ul><li>Add the <code>responseURL</code> field to jqXHR (<a href=\"https://github.com/jquery/jquery/issues/4339\" rel=\"nofollow ugc noopener\">#4339</a>, <a href=\"https://github.com/jquery/jquery/commit/5691e03ae26542732a7719d86357f0eabb2d489b\" rel=\"nofollow ugc noopener\">5691e03a</a>)</li><li>Support an alternative completeCallback API for transports (<a href=\"https://github.com/jquery/jquery/commit/a05c3d736aef56fbdfde66d8fa56245fb5d7524f\" rel=\"nofollow ugc noopener\">a05c3d73</a>)</li></ul>\n<h4 id=\"core\">Core</h4>\n<ul><li>Refactor loops to avoid going behind array bounds (<a href=\"https://github.com/jquery/jquery/commit/5f8ed05417525bacc6a597a334a64835e2f9985b\" rel=\"nofollow ugc noopener\">5f8ed054</a>)</li><li>Drop getElementsBy{Tag,Class}Name in favor of querySelectorAll (<a href=\"https://github.com/jquery/jquery/issues/3642\" rel=\"nofollow ugc noopener\">#3642</a>, <a href=\"https://github.com/jquery/jquery/commit/53a2bcf984ec5d1955d35ea9565e847cbeea0200\" rel=\"nofollow ugc noopener\">53a2bcf9</a>)</li></ul>\n<h4 id=\"css\">CSS</h4>\n<ul><li>Empty the computeTableStyleTests probe table when it might be reused (<a href=\"https://github.com/jquery/jquery/issues/5932\" rel=\"nofollow ugc noopener\">#5932</a>, <a href=\"https://github.com/jquery/jquery/commit/f37226f0c7fce6c2411895970127739e3d8a0dc0\" rel=\"nofollow ugc noopener\">f37226f0</a>)</li><li>Use createElementNS to support XML documents (<a href=\"https://github.com/jquery/jquery/issues/4730\" rel=\"nofollow ugc noopener\">#4730</a>, <a href=\"https://github.com/jquery/jquery/commit/dcb31ae8dd8fcc325a774e3aec0d12d1636f2f9f\" rel=\"nofollow ugc noopener\">dcb31ae8</a>)</li></ul>\n<h4 id=\"data\">Data</h4>\n<ul><li>Shave off some bytes (<a href=\"https://github.com/jquery/jquery/commit/eb9acfe9debc6ec3aa6f40233f432e1a56801238\" rel=\"nofollow ugc noopener\">eb9acfe9</a>)</li></ul>\n<h4 id=\"docs\">Docs</h4>\n<ul><li>Add a new commercial support vendor: TuxCare (<a href=\"https://github.com/jquery/jquery/commit/b75c1fef3af900cb2a202b2ed5a0ad11d731a4e3\" rel=\"nofollow ugc noopener\">b75c1fef</a>)</li><li>Fix spelling of XMLHttpRequest in README (#5903) (<a href=\"https://github.com/jquery/jquery/commit/71c0dd14927c41d1aab5ce5ef2687d7808a4186b\" rel=\"nofollow ugc noopener\">71c0dd14</a>)</li><li>Add guidelines for machine-generated contributions (<a href=\"https://github.com/jquery/jquery/commit/51eb576cca6ffce252dc152bf8e91d5230a0d887\" rel=\"nofollow ugc noopener\">51eb576c</a>)</li><li>Update the jQuery NES HeroDevs link in README (#5853) (<a href=\"https://github.com/jquery/jquery/commit/dd7b28f450e43ecfa736aaaacee6944435dba1cb\" rel=\"nofollow ugc noopener\">dd7b28f4</a>)</li><li>Update active version table (<a href=\"https://github.com/jquery/jquery/commit/fef45254c45d65ecdc87f7f2c2d4e62caf4c1730\" rel=\"nofollow ugc noopener\">fef45254</a>)</li><li>update README with 4.0 release (<a href=\"https://github.com/jquery/jquery/issues/5781\" rel=\"nofollow ugc noopener\">#5781</a>, <a href=\"https://github.com/jquery/jquery/commit/5bffcc1afa9088e904c742d80e39c380c8d59aef\" rel=\"nofollow ugc noopener\">5bffcc1a</a>)</li></ul>\n<h4 id=\"selector\">Selector</h4>\n<ul><li>Work around a Safari 27 regex interepreter bug (<a href=\"https://github.com/jquery/jquery/commit/b557a8c446cc3464fd88741e00916985439e5443\" rel=\"nofollow ugc noopener\">b557a8c4</a>)</li><li>Fix the runescape regex in unescapeSelector (<a href=\"https://github.com/jquery/jquery/commit/e77f87c89ea78ffa086d0cf2778cdab652507e55\" rel=\"nofollow ugc noopener\">e77f87c8</a>)</li><li>Decode invalid escape code points to U+FFFD (#5845) (<a href=\"https://github.com/jquery/jquery/commit/7e1efd77598a527c67d2a674a1259787f7e441fd\" rel=\"nofollow ugc noopener\">7e1efd77</a>)</li><li>Optimize jQuery.uniqueSort duplicate removal (<a href=\"https://github.com/jquery/jquery/commit/35789e7687d31512072098ce0d826079904938d2\" rel=\"nofollow ugc noopener\">35789e76</a>)</li><li>Be more strict in quick selection paths (<a href=\"https://github.com/jquery/jquery/commit/a104324d7a9808250bed64e59ecafaaff8de35e4\" rel=\"nofollow ugc noopener\">a104324d</a>)</li><li>Fix ReDoS in identifier matching (<a href=\"https://github.com/jquery/jquery/commit/d41cf7ddbdd1c48a0a4c577026f83731c451073e\" rel=\"nofollow ugc noopener\">d41cf7dd</a>)</li><li>Use loose document comparisons everywhere (<a href=\"https://github.com/jquery/jquery/commit/74439453991ba9b8f9114a3d4735891e94330135\" rel=\"nofollow ugc noopener\">74439453</a>)</li></ul>\n<h4 id=\"serialize\">Serialize</h4>\n<ul><li>Support form-associated custom elements (<a href=\"https://github.com/jquery/jquery/issues/5245\" rel=\"nofollow ugc noopener\">#5245</a>, <a href=\"https://github.com/jquery/jquery/commit/680c320c69cba9de68658186f2a6d96ea090b2dc\" rel=\"nofollow ugc noopener\">680c320c</a>)</li></ul>\n<h4 id=\"3-8-0\"><a href=\"https://github.com/jquery/jquery/compare/3.7.1...3.8.0\" rel=\"nofollow ugc noopener\">3.8.0</a></h4>\n<h4 id=\"ajax-2\">Ajax</h4>\n<ul><li>Support an alternative completeCallback API for transports (<a href=\"https://github.com/jquery/jquery/commit/43b8652b020fb26920d250ca917ee2ecc298cd3f\" rel=\"nofollow ugc noopener\">43b8652b</a>)</li></ul>\n<h4 id=\"attributes\">Attributes</h4>\n<ul><li>Support the <code>until-found</code> value for the <code>hidden</code> attribute (<a href=\"https://github.com/jquery/jquery/commit/85290c59724db69a3967885892d4305d76de058f\" rel=\"nofollow ugc noopener\">85290c59</a>)</li></ul>\n<h4 id=\"core-2\">Core</h4>\n<ul><li>Formally deprecate push/sort/splice (<a href=\"https://github.com/jquery/jquery/commit/50d9a8dc7fd9e93e09827e4a60772c617d1d5e28\" rel=\"nofollow ugc noopener\">50d9a8dc</a>)</li><li>Simplify code post browser support reduction (<a href=\"https://github.com/jquery/jquery/commit/6fe88690a336a883ea310da76762e5a456dc487a\" rel=\"nofollow ugc noopener\">6fe88690</a>)</li></ul>\n<h4 id=\"css-2\">CSS</h4>\n<ul><li>Empty the computeTableStyleTests probe table when it might be reused (3.x) (<a href=\"https://github.com/jquery/jquery/issues/5932\" rel=\"nofollow ugc noopener\">#5932</a>, <a href=\"https://github.com/jquery/jquery/commit/4bb018759ef2c285fba667a63295f67469b68d2f\" rel=\"nofollow ugc noopener\">4bb01875</a>)</li><li>Fix dimensions of table <code>&lt;col&gt;</code> elements (<a href=\"https://github.com/jquery/jquery/issues/5628\" rel=\"nofollow ugc noopener\">#5628</a>, <a href=\"https://github.com/jquery/jquery/commit/3f70fbc76241051e83642de8afc64e0ff381223c\" rel=\"nofollow ugc noopener\">3f70fbc7</a>)</li><li>Tests: Fix tests &amp; support tests under CSS Zoom (3.x version) (<a href=\"https://github.com/jquery/jquery/issues/5489\" rel=\"nofollow ugc noopener\">#5489</a>, <a href=\"https://github.com/jquery/jquery/commit/29a9030c78a02d5c3b41b66283fe7b5325ac11a0\" rel=\"nofollow ugc noopener\">29a9030c</a>)</li><li>Fix reliableTrDimensions test for initially hidden iframes (3.x) (<a href=\"https://github.com/jquery/jquery/commit/4e989805236ce6401bfc7a08913957960bd71887\" rel=\"nofollow ugc noopener\">4e989805</a>)</li><li>Fix support test results for initially hidden iframes (<a href=\"https://github.com/jquery/jquery/commit/ac68b21fa0554bb63e69a81cf635428ec19c5fa8\" rel=\"nofollow ugc noopener\">ac68b21f</a>)</li></ul>\n<h4 id=\"data-2\">Data</h4>\n<ul><li>Shave off some bytes (<a href=\"https://github.com/jquery/jquery/commit/000feef3286760f6959ad8409e3229eb899b6c9e\" rel=\"nofollow ugc noopener\">000feef3</a>)</li></ul>\n<h4 id=\"docs-2\">Docs</h4>\n<ul><li>Fix some minor issues in comments (<a href=\"https://github.com/jquery/jquery/commit/b57c4b51dc0b01085a0686cc3a0f3c5354aba41f\" rel=\"nofollow ugc noopener\">b57c4b51</a>)</li><li>Update CONTRIBUTING.md (<a href=\"https://github.com/jquery/jquery/commit/d41f0cd9821126835bfe72dabb21767224cd7ea7\" rel=\"nofollow ugc noopener\">d41f0cd9</a>)</li><li>Update remaining HTTP URLs to HTTPS (<a href=\"https://github.com/jquery/jquery/commit/5d5872bd58ed671ccebbd05ca67d1963bc8a8f45\" rel=\"nofollow ugc noopener\">5d5872bd</a>)</li></ul>\n<h4 id=\"event\">Event</h4>\n<ul><li>Increase robustness of an inner native event in leverageNative (<a href=\"https://github.com/jquery/jquery/issues/5459\" rel=\"nofollow ugc noopener\">#5459</a>, <a href=\"https://github.com/jquery/jquery/commit/37bded35229d4753e2f05290e9304011ea2cbade\" rel=\"nofollow ugc noopener\">37bded35</a>)</li></ul>\n<h4 id=\"manipulation\">Manipulation</h4>\n<ul><li>Make jQuery.cleanData not skip elements during cleanup (<a href=\"https://github.com/jquery/jquery/issues/5214\" rel=\"nofollow ugc noopener\">#5214</a>, <a href=\"https://github.com/jquery/jquery/commit/752e9119abea4524d72f48fef03ffda0e255eb33\" rel=\"nofollow ugc noopener\">752e9119</a>)</li><li>Generalize a test to support IE (<a href=\"https://github.com/jquery/jquery/commit/ab0444dd644217786df96a99fc5070c879ce1f9c\" rel=\"nofollow ugc noopener\">ab0444dd</a>)</li><li>Support $el.html(selfRemovingScript) (<a href=\"https://github.com/jquery/jquery/issues/5377\" rel=\"nofollow ugc noopener\">#5377</a>, <a href=\"https://github.com/jquery/jquery/commit/cbc15c9c31fa855304b4b63c13a0c8fb0ef61275\" rel=\"nofollow ugc noopener\">cbc15c9c</a>)</li></ul>\n<h4 id=\"selector-2\">Selector</h4>\n<ul><li>Work around a Safari 27 regex interepreter bug (<a href=\"https://github.com/jquery/jquery/commit/8df0f0d6bbd0299147b4c8de2aa7396540162133\" rel=\"nofollow ugc noopener\">8df0f0d6</a>)</li><li>Fix the runescape regex in unescapeSelector (<a href=\"https://github.com/jquery/jquery/commit/c4a98588f04db3b569b7cff704a104556b39b63d\" rel=\"nofollow ugc noopener\">c4a98588</a>)</li><li>Fix ReDoS in identifier matching (<a href=\"https://github.com/jquery/jquery/commit/dd23807d7fdd8bdb85e7a486c9ab6f2cd40fd70a\" rel=\"nofollow ugc noopener\">dd23807d</a>)</li><li>Use loose document comparisons everywhere (3.x) (<a href=\"https://github.com/jquery/jquery/commit/61bf6c6f8674518feef20900c8fe54d7e26c121e\" rel=\"nofollow ugc noopener\">61bf6c6f</a>)</li><li>Properly deprecate <code>jQuery.expr[ &quot;:&quot; ]</code>/<code>jQuery.expr.filters</code> (<a href=\"https://github.com/jquery/jquery/commit/5eab9df7b6a8a64680390b01b495975c22f4bf2d\" rel=\"nofollow ugc noopener\">5eab9df7</a>)</li></ul>","headings":[{"level":1,"text":"jQuery 4.1.0 and 3.8.0 Released: Passing the Torch","id":"jquery-4-1-0-and-3-8-0-released-passing-the-torch"},{"level":2,"text":"In both 4.1.0 and 3.8.0","id":"in-both-4-1-0-and-3-8-0"},{"level":3,"text":"A new API for AJAX transport complete callbacks","id":"a-new-api-for-ajax-transport-complete-callbacks"},{"level":3,"text":"Selector: ReDoS fix in identifier matching","id":"selector-redos-fix-in-identifier-matching"},{"level":3,"text":"Selector: loose document comparisons everywhere","id":"selector-loose-document-comparisons-everywhere"},{"level":2,"text":"What else is new in 4.1.0","id":"what-else-is-new-in-4-1-0"},{"level":3,"text":"jqXHR gains responseURL","id":"jqxhr-gains-responseurl"},{"level":3,"text":"Serialize form-associated custom elements","id":"serialize-form-associated-custom-elements"},{"level":3,"text":"CSS methods work in XML documents","id":"css-methods-work-in-xml-documents"},{"level":3,"text":"querySelectorAll everywhere","id":"queryselectorall-everywhere"},{"level":3,"text":"Faster uniqueSort","id":"faster-uniquesort"},{"level":2,"text":"What's in 3.8.0","id":"what-s-in-3-8-0"},{"level":3,"text":"Support for hidden=\"until-found\"","id":"support-for-hidden-until-found"},{"level":3,"text":"Deprecations to smooth the road to 4.x","id":"deprecations-to-smooth-the-road-to-4-x"},{"level":3,"text":"Backported fixes","id":"backported-fixes"},{"level":2,"text":"Download","id":"download"},{"level":2,"text":"Thanks","id":"thanks"},{"level":2,"text":"Changelogs","id":"changelogs"}]}}