Verified Commit 5f125e83 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

task: #3449874 Update to jQuery 4.0.0

By: catch
By: xjm
By: nod_
By: longwave
By: damienmckenna
By: spokje
By: gábor hojtsy
By: quietone
(cherry picked from commit 2effbe20)
parent 658cf84b
Loading
Loading
Loading
Loading
Loading
+14 −48
Original line number Diff line number Diff line
/*!
 * jQuery JavaScript Library v4.0.0-rc.1
 * jQuery JavaScript Library v4.0.0
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.com/license/
 *
 * Date: 2025-08-11T16:40Z
 * Date: 2026-01-18T00:20Z
 */
( function( global, factory ) {

@@ -116,7 +116,7 @@ function DOMEval( code, node, doc ) {
	}
}

var version = "4.0.0-rc.1",
var version = "4.0.0",

	rhtmlSuffix = /HTML$/i,

@@ -530,33 +530,11 @@ var whitespace = "[\\x20\\t\\r\\n\\f]";

var isIE = document$1.documentMode;

// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only
// Make sure the `:has()` argument is parsed unforgivingly.
// We include `*` in the test to detect buggy implementations that are
// _selectively_ forgiving (specifically when the list includes at least
// one valid selector).
// Note that we treat complete lack of support for `:has()` as if it were
// spec-compliant support, which is fine because use of `:has()` in such
// environments will fail in the qSA path and fall back to jQuery traversal
// anyway.
try {
	document$1.querySelector( ":has(*,:jqfake)" );
	support.cssHas = false;
} catch ( e ) {
	support.cssHas = true;
}

// Build QSA regex.
// Regex strategy adopted from Diego Perini.
var rbuggyQSA = [];

if ( isIE ) {
	rbuggyQSA.push(
var rbuggyQSA = isIE && new RegExp(

	// Support: IE 9 - 11+
	// IE's :disabled selector does not pick up the children of disabled fieldsets
		":enabled",
		":disabled",
	":enabled|:disabled|" +

	// Support: IE 11+
	// IE 11 doesn't find elements on a `[name='']` query in some cases.
@@ -564,20 +542,8 @@ if ( isIE ) {
	// around the issue.
	"\\[" + whitespace + "*name" + whitespace + "*=" +
	whitespace + "*(?:''|\"\")"
	);
}

if ( !support.cssHas ) {

	// Our regular `try-catch` mechanism fails to detect natively-unsupported
	// pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
	// in browsers that parse the `:has()` argument as a forgiving selector list.
	// https://drafts.csswg.org/selectors/#relational now requires the argument
	// to be parsed unforgivingly, but browsers have not yet fully adjusted.
	rbuggyQSA.push( ":has" );
}

rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
);

var rtrimCSS = new RegExp(
	"^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$",
+2 −2

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -853,10 +853,10 @@ internal.floating-ui:

jquery:
  remote: https://github.com/jquery/jquery
  version: "4.0.0-rc.1"
  version: "4.0.0"
  license:
    name: MIT
    url: https://raw.githubusercontent.com/jquery/jquery/4.0.0-rc.1/LICENSE.txt
    url: https://raw.githubusercontent.com/jquery/jquery/4.0.0/LICENSE.txt
    gpl-compatible: true
  js:
    # jquery.min.js is explicitly set to preprocess: false to prevent its
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@
    "eslint-plugin-yml": "^1.19.0",
    "glob": "^11.1.0",
    "htmx.org": "2.0.8",
    "jquery": "^4.0.0-rc.1",
    "jquery": "^4.0.0",
    "jquery-ui": "^1.14.1",
    "js-cookie": "^3.0.5",
    "jsdom": "^27.1.0",
Loading