🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@22aam
Copy link

@22aam 22aam commented Jan 24, 2022

Summary

Checklist

  • New tests have been added to show the fix or feature works
  • Grunt build and unit tests pass locally with these changes
  • If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com

markelog and others added 30 commits May 29, 2015 19:46
This prevents jQuery from caching a prefixed property name if provided
directly by the user, e.g. the following code:

	elem.css( "msTransform", "translate(5px, 2px)" );

should not prevent one from from later setting the transition directly:

	elem.css( "transform", "translate(5px, 2px)" );

on a browser not understanding the unprefixed version which is the case
for Safari 8 & transform.

(cherry-picked from d471842)

Fixes jquerygh-2015
Closes jquerygh-2298
IE8 doesn't like named anonymous expressions. Not naming the function
expression reduces the gzipped size by 5 bytes.

In ECMAScript 2015 the function will get the name inferred from the
variable name (here: swap) anyway.

Refs 02a9d9f
JSON needed to be added to JSHint globals as it's not implied by the es3
setting and yet all our supported browsers have it implemented.

(cherry-picked from 1556c46)
Make iterating over jQuery objects possible using ES 2015 for-of:

    for ( node of $( "<div id=narwhal>" ) ) {
        console.log( node.id ); // "narwhal"
    }

(partially cherry-picked from bb026fc)

Fixes jquerygh-1693
The Microsoft Edge user agent contains "Chrome" so it needs to be checked
before Chrome.

Refs 8e111df
The version will change in the future, matching by /edge\//i is enough

(cherry-picked from 5a1217e)

Refs 8e111df
The file was used by $.browser tests but $.browser now doesn't exists
in Core and this file hasn't been updated for a few years.

(cherry-picked from e831856)

Fixes jquerygh-2398
- getClientRects() throws on disconnected elements in IE8 only
- Also add comments to hidden/disconnected tests noting
  this is to ensure consistency between branches
jQuery.support.ownLast was the only support test that was supposed
to be false when it succeeded. It was confusing.

Fixes jquerygh-2406
Closes jquerygh-2408
Conflicts:
	src/selector-native.js
	test/index.html
	test/unit/effects.js
timmywil and others added 27 commits February 24, 2016 10:20
The document.implementation.createHTMLDocument("") method creates inert
documents which is good but using it has introduced issues around anchor
elements href property not resolving according to the current document.
Because of that, this patch is getting backed out on 1.x/2.x branches.

(cherry-picked from c5c3073)

Refs cfe468f
Refs jquerygh-1505
Fixes jquerygh-2941
IE 11 used to have an issue where if an element inside an iframe was put
in fullscreen mode, the element dimensions started being 100 times too small;
we've added a workaround that would multiply them by 100. However, the IE 11
issue has been unexpectedly fixed and since our detection was really detecting
the browser and not a bug, we've started breaking the browser instead of fixing
it.

Since there's no good way to detect if the bug exists, we have to back the
workaround out completely.

Refs ff1a082
Refs fb9adb9
Fixes jquerygh-3041
Refs jquerygh-1764
Refs jquerygh-2401
Refs 90d828b
This reverts commit 498fd24.

Node 0.10 has updated its npm to v2 so most issues with it should be resolved
now.
Safari 9.1 shares its support test results with Safari 9.0 but it's been
excluded from the regex catching Safari 9.0. This has been fixed.

(cherry-picked from 234a2d8)
The word boundary character will prevent iOS from being a false positive.

(cherry-picked from 7f2ebd2)
This makes commands like `npm install package --save-dev` always get saved
to package.json as a pinned version and not as a `^`-delimited range.

(cherry-picked from 6600e2e)
`npm install package@version --save` sorts the dependencies alphabetically
so the next such run would fix the order anyway; it's better to not mix
concerns, though, so it's done now in a separate commit.

(cherry-picked from 4a8985f)
A bug in UglifyJS was causing function declarations to sometimes be put
in blocks which wasn't well specified in ES5 so it may break some browsers.
This bump will prevent the issue from occurring in any potential future
releae in this line.

(cherry-picked from b14ce54)

Refs jquery#3153
Refs mishoo/UglifyJS#1052
Only allow alphanumeric characters & underscores for callback parameters.
This is only test code so we're not fixing any security issue but it happens
often enough that the whole jQuery repository directory structure is deployed
onto the server with PHP enabled that it makes is easy to introduce security
issues if this cleanup is not done.

This is a 1.x/2.x version of PR jquerygh-4871.

The change doesn't require a release; it's meant at installations testing
the latest state of `1.12-stable` & `2.2-stable` branches.

This change also fixes testing on Travis & on Chrome/Firefox.

Closes jquerygh-4875
Ref jquerygh-4764
Ref jquerygh-4871

(cherry picked from acb7c49)
@mgol
Copy link
Member

mgol commented Jan 25, 2022

Don’t submit fake PRs, it spams a lot of people.

@mgol mgol closed this Jan 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.