11/*!
2- * jQuery JavaScript Library v3.7.0
2+ * jQuery JavaScript Library v3.7.1
33 * https://jquery.com/
44 *
55 * Copyright OpenJS Foundation and other contributors
66 * Released under the MIT license
77 * https://jquery.org/license
88 *
9- * Date: 2023-05-11T18:29Z
9+ * Date: 2023-08-28T13:37Z
1010 */
1111( function ( global , factory ) {
1212
@@ -147,7 +147,7 @@ function toType( obj ) {
147147
148148
149149
150- var version = "3.7.0 " ,
150+ var version = "3.7.1 " ,
151151
152152 rhtmlSuffix = / H T M L $ / i,
153153
@@ -411,9 +411,14 @@ jQuery.extend( {
411411 // Do not traverse comment nodes
412412 ret += jQuery . text ( node ) ;
413413 }
414- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
414+ }
415+ if ( nodeType === 1 || nodeType === 11 ) {
415416 return elem . textContent ;
416- } else if ( nodeType === 3 || nodeType === 4 ) {
417+ }
418+ if ( nodeType === 9 ) {
419+ return elem . documentElement . textContent ;
420+ }
421+ if ( nodeType === 3 || nodeType === 4 ) {
417422 return elem . nodeValue ;
418423 }
419424
@@ -1126,12 +1131,17 @@ function setDocument( node ) {
11261131 documentElement . msMatchesSelector ;
11271132
11281133 // Support: IE 9 - 11+, Edge 12 - 18+
1129- // Accessing iframe documents after unload throws "permission denied" errors (see trac-13936)
1130- // Support: IE 11+, Edge 17 - 18+
1131- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
1132- // two documents; shallow comparisons work.
1133- // eslint-disable-next-line eqeqeq
1134- if ( preferredDoc != document &&
1134+ // Accessing iframe documents after unload throws "permission denied" errors
1135+ // (see trac-13936).
1136+ // Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,
1137+ // all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.
1138+ if ( documentElement . msMatchesSelector &&
1139+
1140+ // Support: IE 11+, Edge 17 - 18+
1141+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
1142+ // two documents; shallow comparisons work.
1143+ // eslint-disable-next-line eqeqeq
1144+ preferredDoc != document &&
11351145 ( subWindow = document . defaultView ) && subWindow . top !== subWindow ) {
11361146
11371147 // Support: IE 9 - 11+, Edge 12 - 18+
@@ -2694,12 +2704,12 @@ jQuery.find = find;
26942704jQuery . expr [ ":" ] = jQuery . expr . pseudos ;
26952705jQuery . unique = jQuery . uniqueSort ;
26962706
2697- // These have always been private, but they used to be documented
2698- // as part of Sizzle so let's maintain them in the 3.x line
2699- // for backwards compatibility purposes.
2707+ // These have always been private, but they used to be documented as part of
2708+ // Sizzle so let's maintain them for now for backwards compatibility purposes.
27002709find . compile = compile ;
27012710find . select = select ;
27022711find . setDocument = setDocument ;
2712+ find . tokenize = tokenize ;
27032713
27042714find . escape = jQuery . escapeSelector ;
27052715find . getText = jQuery . text ;
@@ -5913,7 +5923,7 @@ function domManip( collection, args, callback, ignored ) {
59135923 if ( hasScripts ) {
59145924 doc = scripts [ scripts . length - 1 ] . ownerDocument ;
59155925
5916- // Reenable scripts
5926+ // Re-enable scripts
59175927 jQuery . map ( scripts , restoreScript ) ;
59185928
59195929 // Evaluate executable scripts on first document insertion
@@ -6370,7 +6380,7 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
63706380 trChild = document . createElement ( "div" ) ;
63716381
63726382 table . style . cssText = "position:absolute;left:-11111px;border-collapse:separate" ;
6373- tr . style . cssText = "border:1px solid" ;
6383+ tr . style . cssText = "box-sizing:content-box; border:1px solid" ;
63746384
63756385 // Support: Chrome 86+
63766386 // Height set through cssText does not get applied.
@@ -6382,7 +6392,7 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
63826392 // In our bodyBackground.html iframe,
63836393 // display for all div elements is set to "inline",
63846394 // which causes a problem only in Android 8 Chrome 86.
6385- // Ensuring the div is display: block
6395+ // Ensuring the div is ` display: block`
63866396 // gets around this issue.
63876397 trChild . style . display = "block" ;
63886398
@@ -10550,7 +10560,9 @@ jQuery.fn.extend( {
1055010560 } ,
1055110561
1055210562 hover : function ( fnOver , fnOut ) {
10553- return this . mouseenter ( fnOver ) . mouseleave ( fnOut || fnOver ) ;
10563+ return this
10564+ . on ( "mouseenter" , fnOver )
10565+ . on ( "mouseleave" , fnOut || fnOver ) ;
1055410566 }
1055510567} ) ;
1055610568
0 commit comments