|
1 | 1 | /*! |
2 | | - * jQuery JavaScript Library v3.7.0 |
| 2 | + * jQuery JavaScript Library v3.7.1 |
3 | 3 | * https://jquery.com/ |
4 | 4 | * |
5 | 5 | * Copyright OpenJS Foundation and other contributors |
6 | 6 | * Released under the MIT license |
7 | 7 | * https://jquery.org/license |
8 | 8 | * |
9 | | - * Date: 2023-05-11T18:29Z |
| 9 | + * Date: 2023-08-28T13:37Z |
10 | 10 | */ |
11 | 11 | ( function( global, factory ) { |
12 | 12 |
|
|
147 | 147 |
|
148 | 148 |
|
149 | 149 |
|
150 | | - var version = "3.7.0", |
| 150 | + var version = "3.7.1", |
151 | 151 |
|
152 | 152 | rhtmlSuffix = /HTML$/i, |
153 | 153 |
|
|
411 | 411 | // Do not traverse comment nodes |
412 | 412 | ret += jQuery.text( node ); |
413 | 413 | } |
414 | | - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { |
| 414 | + } |
| 415 | + if ( nodeType === 1 || nodeType === 11 ) { |
415 | 416 | 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 ) { |
417 | 422 | return elem.nodeValue; |
418 | 423 | } |
419 | 424 |
|
|
1126 | 1131 | documentElement.msMatchesSelector; |
1127 | 1132 |
|
1128 | 1133 | // 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 && |
1135 | 1145 | ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { |
1136 | 1146 |
|
1137 | 1147 | // Support: IE 9 - 11+, Edge 12 - 18+ |
|
2694 | 2704 | jQuery.expr[ ":" ] = jQuery.expr.pseudos; |
2695 | 2705 | jQuery.unique = jQuery.uniqueSort; |
2696 | 2706 |
|
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. |
2700 | 2709 | find.compile = compile; |
2701 | 2710 | find.select = select; |
2702 | 2711 | find.setDocument = setDocument; |
| 2712 | + find.tokenize = tokenize; |
2703 | 2713 |
|
2704 | 2714 | find.escape = jQuery.escapeSelector; |
2705 | 2715 | find.getText = jQuery.text; |
|
5913 | 5923 | if ( hasScripts ) { |
5914 | 5924 | doc = scripts[ scripts.length - 1 ].ownerDocument; |
5915 | 5925 |
|
5916 | | - // Reenable scripts |
| 5926 | + // Re-enable scripts |
5917 | 5927 | jQuery.map( scripts, restoreScript ); |
5918 | 5928 |
|
5919 | 5929 | // Evaluate executable scripts on first document insertion |
|
6370 | 6380 | trChild = document.createElement( "div" ); |
6371 | 6381 |
|
6372 | 6382 | 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"; |
6374 | 6384 |
|
6375 | 6385 | // Support: Chrome 86+ |
6376 | 6386 | // Height set through cssText does not get applied. |
|
6382 | 6392 | // In our bodyBackground.html iframe, |
6383 | 6393 | // display for all div elements is set to "inline", |
6384 | 6394 | // which causes a problem only in Android 8 Chrome 86. |
6385 | | - // Ensuring the div is display: block |
| 6395 | + // Ensuring the div is `display: block` |
6386 | 6396 | // gets around this issue. |
6387 | 6397 | trChild.style.display = "block"; |
6388 | 6398 |
|
|
10550 | 10560 | }, |
10551 | 10561 |
|
10552 | 10562 | hover: function( fnOver, fnOut ) { |
10553 | | - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); |
| 10563 | + return this |
| 10564 | + .on( "mouseenter", fnOver ) |
| 10565 | + .on( "mouseleave", fnOut || fnOver ); |
10554 | 10566 | } |
10555 | 10567 | } ); |
10556 | 10568 |
|
|
0 commit comments