Skip to content

Commit fde1f76

Browse files
committed
Release 3.7.1
1 parent b755b3e commit fde1f76

File tree

15 files changed

+555
-511
lines changed

15 files changed

+555
-511
lines changed

AUTHORS.txt

Lines changed: 371 additions & 368 deletions
Large diffs are not rendered by default.

LICENSE.txt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2-
3-
Permission is hereby granted, free of charge, to any person obtaining
4-
a copy of this software and associated documentation files (the
5-
"Software"), to deal in the Software without restriction, including
6-
without limitation the rights to use, copy, modify, merge, publish,
7-
distribute, sublicense, and/or sell copies of the Software, and to
8-
permit persons to whom the Software is furnished to do so, subject to
9-
the following conditions:
10-
11-
The above copyright notice and this permission notice shall be
12-
included in all copies or substantial portions of the Software.
13-
14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
# jQuery
2-
3-
> jQuery is a fast, small, and feature-rich JavaScript library.
4-
5-
For information on how to get started and how to use jQuery, please see [jQuery's documentation](https://api.jquery.com/).
6-
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
7-
8-
If upgrading, please see the [blog post for 3.7.0](https://blog.jquery.com/2023/05/11/jquery-3-7-0-released-staying-in-order/). This includes notable differences from the previous version and a more readable changelog.
9-
10-
## Including jQuery
11-
12-
Below are some of the most common ways to include jQuery.
13-
14-
### Browser
15-
16-
#### Script tag
17-
18-
```html
19-
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
20-
```
21-
22-
#### Webpack / Browserify / Babel
23-
24-
There are several ways to use [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this:
25-
26-
```js
27-
import $ from "jquery";
28-
```
29-
30-
If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:
31-
32-
```js
33-
var $ = require( "jquery" );
34-
```
35-
36-
#### AMD (Asynchronous Module Definition)
37-
38-
AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](https://requirejs.org/docs/whyamd.html).
39-
40-
```js
41-
define( [ "jquery" ], function( $ ) {
42-
43-
} );
44-
```
45-
46-
### Node
47-
48-
To include jQuery in [Node](https://nodejs.org/), first install with npm.
49-
50-
```sh
51-
npm install jquery
52-
```
53-
54-
For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/jsdom/jsdom). This can be useful for testing purposes.
55-
56-
```js
57-
const { JSDOM } = require( "jsdom" );
58-
const { window } = new JSDOM( "" );
59-
const $ = require( "jquery" )( window );
60-
```
1+
# jQuery
2+
3+
> jQuery is a fast, small, and feature-rich JavaScript library.
4+
5+
For information on how to get started and how to use jQuery, please see [jQuery's documentation](https://api.jquery.com/).
6+
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
7+
8+
If upgrading, please see the [blog post for 3.7.1](https://blog.jquery.com/2023/08/28/jquery-3-7-1-released-reliable-table-row-dimensions/). This includes notable differences from the previous version and a more readable changelog.
9+
10+
## Including jQuery
11+
12+
Below are some of the most common ways to include jQuery.
13+
14+
### Browser
15+
16+
#### Script tag
17+
18+
```html
19+
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
20+
```
21+
22+
#### Webpack / Browserify / Babel
23+
24+
There are several ways to use [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this:
25+
26+
```js
27+
import $ from "jquery";
28+
```
29+
30+
If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:
31+
32+
```js
33+
var $ = require( "jquery" );
34+
```
35+
36+
#### AMD (Asynchronous Module Definition)
37+
38+
AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](https://requirejs.org/docs/whyamd.html).
39+
40+
```js
41+
define( [ "jquery" ], function( $ ) {
42+
43+
} );
44+
```
45+
46+
### Node
47+
48+
To include jQuery in [Node](https://nodejs.org/), first install with npm.
49+
50+
```sh
51+
npm install jquery
52+
```
53+
54+
For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/jsdom/jsdom). This can be useful for testing purposes.
55+
56+
```js
57+
const { JSDOM } = require( "jsdom" );
58+
const { window } = new JSDOM( "" );
59+
const $ = require( "jquery" )( window );
60+
```

dist/jquery.js

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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 = /HTML$/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;
26942704
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
26952705
jQuery.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.
27002709
find.compile = compile;
27012710
find.select = select;
27022711
find.setDocument = setDocument;
2712+
find.tokenize = tokenize;
27032713

27042714
find.escape = jQuery.escapeSelector;
27052715
find.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

dist/jquery.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.slim.js

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* jQuery JavaScript Library v3.7.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween
2+
* jQuery JavaScript Library v3.7.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween
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 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",
150+
var version = "3.7.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",
151151

152152
rhtmlSuffix = /HTML$/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;
26942704
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
26952705
jQuery.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.
27002709
find.compile = compile;
27012710
find.select = select;
27022711
find.setDocument = setDocument;
2712+
find.tokenize = tokenize;
27032713

27042714
find.escape = jQuery.escapeSelector;
27052715
find.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

@@ -8451,7 +8461,9 @@ jQuery.fn.extend( {
84518461
},
84528462

84538463
hover: function( fnOver, fnOut ) {
8454-
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
8464+
return this
8465+
.on( "mouseenter", fnOver )
8466+
.on( "mouseleave", fnOut || fnOver );
84558467
}
84568468
} );
84578469

0 commit comments

Comments
 (0)