Commit Graph

6092 Commits

Author SHA1 Message Date
Michał Gołębiowski-Owczarek
acb7c49c8d
Tests: Strip untypical callback parameter characters from PHP files
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 gh-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 gh-4875
Ref gh-4764
Ref gh-4871
2021-04-29 18:27:58 +02:00
Michał Gołębiowski
b14ce54334 Build: Update grunt-contrib-uglify
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.

Refs jquery/jquery#3153
Refs mishoo/UglifyJS2#1052
2016-06-09 00:11:21 +02:00
Michał Gołębiowski
4a8985f56a Build: Fix the order of devDependencies in package.json
`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.
2016-06-09 00:08:50 +02:00
Michał Gołębiowski
2b5d7243bd Build: Add .npmrc with save-exact=true
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 6600e2e2b9)
2016-06-09 00:06:53 +02:00
Timmy Willison
5d005f75e5 Build: Updating the 2.2-stable version to 2.2.5-pre. 2016-05-20 13:26:10 -04:00
Oleg Gaidarenko
30536d3143 Tests: adjust to older version of qunit
Ref 66b840618d
2016-05-20 13:50:09 +03:00
Oleg Gaidarenko
4ed8b49453 Revert "Build: Bump qunit version"
This reverts commit afe2727c56.
2016-05-20 13:38:12 +03:00
Oleg Gaidarenko
afe2727c56 Build: Bump qunit version
So it would correspond to one in master
2016-05-19 22:24:46 +03:00
Oleg Gaidarenko
66b840618d Event: don't execute native stop(Immediate)Propagation from simulation
In Firefox, called `stop(Immediate)Propagation` methods,
in capturing phase prevents receiving focus

Cherry-picked from 94efb79929
Fixes gh-3111
2016-05-19 22:22:13 +03:00
Timmy Willison
a15da4129a Release: remove extraneous files from dist during release
Fixes gh-3094
Close gh-3116
2016-05-13 11:39:51 -04:00
Timmy Willison
f4253b8ef5 Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
2016-05-13 11:39:48 -04:00
Michał Gołębiowski
b052e16cd3 Tests: Make the regex catching Safari 9.0/9.1 more resilient
The word boundary character will prevent iOS from being a false positive.

(cherry-picked from 7f2ebd2c4d)
2016-05-02 23:31:25 +02:00
Michał Gołębiowski
b9272aaedc Tests: take Safari 9.1 into account
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 234a2d8280)
2016-05-02 22:49:56 +02:00
Michał Gołębiowski
70025d0e65 Build: test on Node.js 6 2016-04-26 22:47:25 +02:00
Michał Gołębiowski
fb9adb9f05 CSS: Don't workaround the IE 11 iframe-in-fullscreen sizing issues
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 ff1a0822f7
Fixes gh-3041
Refs gh-1764
Refs gh-2401
Refs 90d828bad0
2016-04-26 21:25:30 +02:00
Timmy Willison
49f830a261 Build: Updating the 2.2-stable version to 2.2.4-pre. 2016-04-05 15:27:20 -04:00
Oleg Gaidarenko
ac13b23bf0 Ajax: execute jQuery#load callback with correct context
Thanks @blq (Fredrik Blomqvist)

Fixes gh-3035
Close gh-3039
2016-04-04 16:23:43 -04:00
Timmy Willison
1f4817d19a Build: Updating the 2.2-stable version to 2.2.3-pre. 2016-03-17 13:52:32 -04:00
Timmy Willison
e7af951add Attributes: strip/collapse whitespace for set values on selects
Fixes gh-2978
Close gh-3002
2016-03-17 12:27:12 -04:00
Richard Gibson
0ef97b5939 Core: Restore 1.x isPlainObject constructor checks
- Guard isPlainObject against inherited scalar constructors

Fixes gh-2982
Close gh-2985
2016-03-14 11:43:36 -04:00
Timmy Willison
b38bee5ba3 Attributes: remove redundant parent check 2016-03-07 11:29:39 -05:00
Timmy Willison
67d4aebda7 Attributes: fix setting selected on an option in IE<=11
Fixes gh-2732
Close gh-2840
2016-03-07 11:23:40 -05:00
Timmy Willison
63397aaaea Core: restore enumeration behavior in isPlainObject
Fixes gh-2968
Close gh-2970
2016-03-07 11:23:33 -05:00
Michał Gołębiowski
c5c3073531 Core: drop the document.implementation.createHTMLDocument usage
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.

Refs cfe468f29c
Refs gh-1505
Fixes gh-2941
2016-03-02 12:28:00 +01:00
Timmy Willison
5d620be420 Release: include external/sizzle in releases
Ref gh-2945
2016-02-24 10:21:40 -05:00
Timmy Willison
7d856124af Build: Updating the 2.2-stable version to 2.2.2-pre. 2016-02-22 14:12:11 -05:00
Timmy Willison
d0491733c4 Build: update AUTHORS 2016-02-22 13:23:21 -05:00
Timmy Willison
f1d1d399ec CSS: fix for disconnected elems on doc fragments in Opera 12 2016-02-22 11:30:18 -05:00
Timmy Willison
b536cd561f Build: use hard-coded path to sizzle in selector-sizzle
Fixes gh-2898
2016-02-22 10:43:02 -05:00
Zack Hall
d230d51731 Tests: Set Edge's expected support for clearCloneStyle to true
This is done for a version 13 or newer as the bug still exists in Edge
12.

(cherry-picked from 28f0329a02)

Closes gh-2857
2016-02-13 20:44:04 +01:00
Oleg Gaidarenko
76ca957dac Build: add npm-debug.log to .gitignore 2016-02-13 22:36:53 +03:00
Oleg Gaidarenko
b3517760a3 Tests: use jQuery variable instead of $
For some reason that works with `amd` but not with builded version

Fixes gh-2909
2016-02-13 21:22:54 +03:00
Oleg Gaidarenko
1b4435bb47 Build: simplify and correct .editorconfig 2016-02-11 22:55:39 +03:00
Oleg Gaidarenko
30202be6e1 Tests: test element position outside view
Ref ee0f61647c
Ref gh-2828
Ref gh-2836
Fixes gh-2909
2016-02-11 22:55:34 +03:00
Oleg Gaidarenko
ee0f61647c Revert "Offset: account for scroll when calculating position"
This reverts commit 2d715940b9.

This commit provoked new issues: gh-2836, gh-2828.

At the meeting, we decided to revert offending commit
(in all three branches - 2.2-stable, 1.12-stable and master)
and tackle this issue in 3.x.

Fixes gh-2828
2016-02-09 00:14:19 +03:00
Timmy Willison
412c5dfb0d Revert "Manipulation: don't auto-insert tbody"
This reverts commit e984d1c79c.

Fixes gh-2861
2016-01-27 12:19:41 -05:00
Timmy Willison
cff3957457 CSS: Add test for gh-2867 2016-01-27 11:37:35 -05:00
Todor Prikumov
182294539e CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866
Close gh-2867
2016-01-27 11:37:32 -05:00
Devin Wilson
c4d9eac930 Event: Fix chaining .on() with null handlers
Fixes gh-2812
Close gh-2825
2016-01-15 13:48:53 -05:00
Michał Gołębiowski
df31b88135 Event: compat -> 1.x in comments
Ref 3c56eac507
2016-01-11 19:21:45 +01:00
Timmy Willison
3c56eac507 Release: compat -> 1.x. Remove compat-specific release semantics
(cherry-picked from 25d0afa51e)
2016-01-11 19:16:43 +01:00
Timmy Willison
66a4ab0e35 Build: Updating the 2.2-stable version to 2.2.1-pre. 2016-01-08 15:03:45 -05:00
Timmy Willison
6ed6bc335f Manipulation: re-expose domManip until 3.0
Fixes gh-2225
2016-01-08 13:59:53 -05:00
Timmy Willison
b4e139cb7b Release: ensure files are copied to dist 2016-01-08 13:39:46 -05:00
Timmy Willison
47c21efce5 Release: allow local and github dists 2016-01-08 13:39:46 -05:00
Timmy Willison
ae3229c805 Release: update AUTHORS.txt 2016-01-08 13:39:46 -05:00
Michał Gołębiowski
3f839af50b Tests: hotfix for c1511c6731
Refs c1511c6731
2016-01-07 23:30:51 +01:00
Michał Gołębiowski
27325311db Tests: Accept Android 2.3 doesn't fire window.onerror for remote scripts
A followup to 1a9c9b0791
2016-01-07 23:26:12 +01:00
Michał Gołębiowski
1a9c9b0791 Tests: Disable/relax a few tests failing in Android 2.3
(cherry-picked from 704de8180f)

Fixes gh-1785
2016-01-07 23:14:55 +01:00
Timmy Willison
c1511c6731 Data: find hyphenated data with camelCased key
Fixes gh-2779
2016-01-07 16:50:59 -05:00