Commit Graph

5873 Commits

Author SHA1 Message Date
Michał Gołębiowski-Owczarek
90a3c43982 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

(cherry picked from acb7c49c8d)
2021-04-29 18:38:11 +02:00
Michał Gołębiowski
e09907ce15 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.

(cherry-picked from b14ce54334)

Refs jquery/jquery#3153
Refs mishoo/UglifyJS2#1052
2016-06-09 00:11:54 +02:00
Michał Gołębiowski
30c2c39f4a 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.

(cherry-picked from 4a8985f56a)
2016-06-09 00:09:13 +02:00
Michał Gołębiowski
ac1c472b41 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:07:03 +02:00
Timmy Willison
7e66f552ec Build: Updating the 1.12-stable version to 1.12.5-pre. 2016-05-20 13:19:10 -04:00
Timmy Willison
376caf4da1 Release: remove extraneous files from dist during release
Fixes gh-3094
Close gh-3116
2016-05-13 11:39:25 -04:00
Timmy Willison
7cb6958ab8 Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
2016-05-13 11:36:45 -04:00
Timmy Willison
fabdc35eee Revert "Release: copy sizzle separately into an 'external' folder"
This reverts commit 59003ae713.
2016-05-12 10:28:23 -04:00
Timmy Willison
c41defb7f3 CSS: ensure table styles do not affect reliableHiddenOffsets test
Fixes gh-3065
Close gh-3057
2016-05-11 18:24:23 -04:00
Timmy Willison
c43066c41e CSS: disconnected elements should be hidden
Fixes gh-3043
2016-05-11 18:24:00 -04:00
Timmy Willison
59003ae713 Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
2016-05-09 13:17:42 -04:00
Michał Gołębiowski
fba81c09cc 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:33:07 +02:00
Michał Gołębiowski
9d41fc1466 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:50:25 +02:00
Michał Gołębiowski
1e60327e31 Revert "Build: remove node .10 from travis"
This reverts commit 498fd24f38.

Node 0.10 has updated its npm to v2 so most issues with it should be resolved
now.
2016-04-27 01:22:36 +02:00
Michał Gołębiowski
b93442f179 Build: test on Node.js 6 2016-04-26 22:47:50 +02:00
Michał Gołębiowski
3542c12137 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
Refs fb9adb9f05
Fixes gh-3041
Refs gh-1764
Refs gh-2401
Refs 90d828bad0
2016-04-26 21:28:44 +02:00
Timmy Willison
b1154f1984 Build: Updating the 1.12-stable version to 1.12.4-pre. 2016-04-05 15:21:40 -04:00
Oleg Gaidarenko
92781dad21 Ajax: execute jQuery#load callback with correct context
Thanks @blq (Fredrik Blomqvist)

Fixes gh-3035
Close gh-3039
2016-04-04 16:24:07 -04:00
Michał Gołębiowski
cfe830eefd Revert "Ajax: Mitigate possible XSS vulnerability"
This reverts commit f60729f390.

Fixes gh-3011
Refs ad358fd62b
2016-03-23 12:44:29 +01:00
Timmy Willison
22ce99ad3c Build: Updating the 1.12-stable version to 1.12.3-pre. 2016-03-17 13:46:04 -04:00
Timmy Willison
92fb9de22c Attributes: ignore option value mismatch on untrimmed unicode whitespace 2016-03-17 13:03:39 -04:00
Timmy Willison
da015d9ca0 Attributes: strip/collapse whitespace for set values on selects
Fixes gh-2978
Close gh-3002
2016-03-17 12:32:52 -04:00
Timmy Willison
88b91af26e Core: fix isPlainObject(Object.create) test in IE 2016-03-07 12:02:20 -05:00
Timmy Willison
b18894720a Attributes: fix setting selected on an option in IE<=11
Fixes gh-2732
Close gh-2840
2016-03-07 11:29:06 -05:00
Timmy Willison
63317eb474 Core: restore enumeration behavior in isPlainObject
Fixes gh-2968
Close gh-2970
2016-03-07 11:29:06 -05:00
Michał Gołębiowski
6403cf614f 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.

(cherry-picked from c5c3073531)

Refs cfe468f29c
Refs gh-1505
Fixes gh-2941
2016-03-02 12:34:06 +01:00
Timmy Willison
ed94387247 Release: include external/sizzle in releases
Ref gh-2945
2016-02-24 10:20:51 -05:00
Timmy Willison
5f76c8ea67 Build: Updating the 1.12-stable version to 1.12.2-pre. 2016-02-22 14:08:07 -05:00
Timmy Willison
e6b9c31646 Build: update AUTHORS 2016-02-22 13:24:01 -05:00
Timmy Willison
e5d3cf9c09 CSS: fix for disconnected elems on doc fragments in Opera 12 2016-02-22 11:24:52 -05:00
Timmy Willison
ef2a06eb61 Build: use hard-coded path to sizzle in selector-sizzle
Fixes gh-2898
2016-02-22 10:43:47 -05:00
Zack Hall
e456c30a2d 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:45:58 +01:00
Oleg Gaidarenko
f6257b2b3f Build: add npm-debug.log to .gitignore 2016-02-13 22:36:53 +03:00
Oleg Gaidarenko
7dbf1c1b2b 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:23:05 +03:00
Oleg Gaidarenko
a047d4112f Build: use tabs in CSS, also simplify and correct .editorconfig
See https://contribute.jquery.org/style-guide/css/#spacing
> Indentation with tabs.
2016-02-11 22:56:03 +03:00
Oleg Gaidarenko
c3b1d9c07e Tests: test element position outside view
Ref a0f5c357c4
Ref gh-2828
Ref gh-2836
Fixes gh-2909
2016-02-11 22:55:58 +03:00
Oleg Gaidarenko
a0f5c357c4 Revert "Offset: account for scroll when calculating position"
This reverts commit 0654711e0d.

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:10:02 +03:00
Timmy Willison
e7e80fe476 CSS: Add test for gh-2867 2016-01-27 11:39:32 -05:00
Todor Prikumov
ab5992e56e CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866
Close gh-2867
2016-01-27 11:39:24 -05:00
Devin Wilson
5938a21466 Event: Add tests for chaining .on() with null handlers
Fixes gh-2812
Close gh-2825
2016-01-15 13:50:02 -05:00
Timmy Willison
8c293e62bb Core: use interactive to evaluate dom ready, barring IE6-10
Fixes gh-2100
Close gh-2821
2016-01-14 10:18:31 -05:00
Michał Gołębiowski
d19aa97463 Tests: compat -> 1.x in comments
(cherry-picked from df31b88135)
2016-01-11 19:23:28 +01:00
Timmy Willison
090b82776f Build: Updating the 1.12-stable version to 1.12.1-pre. 2016-01-08 14:58:08 -05:00
Timmy Willison
0398d90371 Release: update AUTHORS.txt again 2016-01-08 14:53:03 -05:00
Timmy Willison
95de105778 Manipulation: re-expose domManip until 3.0
Fixes gh-2225
2016-01-08 14:00:05 -05:00
Timmy Willison
f5029f586a Release: ensure files are copied to dist 2016-01-08 13:40:06 -05:00
Timmy Willison
3a4a95c7b6 Release: allow local and github dists 2016-01-08 13:40:06 -05:00
Timmy Willison
ce4822c046 Release: update AUTHORS.txt 2016-01-08 13:40:06 -05:00
Timmy Willison
25d0afa51e Release: compat -> 1.x. Remove compat-specific release semantics 2016-01-08 13:40:06 -05:00
Michał Gołębiowski
704de8180f Tests: Disable/relax a few tests failing in Android 2.3
Fixes gh-1785
2016-01-07 23:07:58 +01:00