Commit Graph

5959 Commits

Author SHA1 Message Date
Timmy Willison
0d11c1182f Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 08:53:17 -07:00
Timmy Willison
6176567361 Offset: remove ownerDocument check in offset getter
Fixes gh-2115
2015-05-05 08:31:39 -07:00
Arthur Stolyar
1617479fcf Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
2015-05-05 08:16:29 -07:00
Timmy Willison
add85afed5 Selector: add test for jQuery.unique() alias 2015-05-05 07:59:12 -07:00
Timmy Willison
e1090c3d2b Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
2015-05-04 15:27:12 -07:00
Timmy Willison
7a6931de68 Core: allow init to accept an alternate rootjQuery for migrate's sake
- This will be tested in migrate

Fixes gh-2101
2015-05-04 15:16:28 -07:00
Timmy Willison
172cad80ac Data: camelCasing should not ignore case
Fixes gh-2070
2015-05-04 10:49:21 -04:00
Timmy Willison
0e790985a7 Data: always camelCase keys in .data()
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn

Fixes gh-2257
2015-05-04 10:27:30 -04:00
Timmy Willison
2862a07af6 Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-03 08:25:19 -04:00
Oleg Gaidarenko
a873558436 Event: remove redundant guards for the event methods
Fixes gh-2047
Closes gh-2125
2015-05-03 13:56:32 +03:00
Oleg Gaidarenko
85577a348a Core:CSS:Event: simplification of native method signatures
* Remove third argument from "addEventListener"

* Remove third argument from "removeEventListener"

* Remove second argument from "getComputedStyle"

Ref gh-2047
2015-05-03 13:56:32 +03:00
Oleg Gaidarenko
a117dd05f6 Ajax: remove "onunload" event handler
Remove hack for IE lost connections, update for it was released
by Microsoft at November 12, 2013.
See https://support.microsoft.com/en-us/kb/2905733

Ref trac-5280
Ref gh-2047
2015-05-03 13:54:17 +03:00
Oleg Gaidarenko
9db9316609 Event: add support comment
Ref gh-2047
2015-05-03 13:28:34 +03:00
Oleg Gaidarenko
fac67a9842 Event: remove guard for falsy handler argument of jQuery#on method
Since we don't have this in off method and its a common perception
that this is a rudiment code

Ref gh-2248
Closes gh-2249
2015-05-03 13:28:27 +03:00
Richard Gibson
225bde37c9 Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203
2015-04-30 13:15:33 -04:00
Richard Gibson
4b27ae16a2 Manipulation: Detect sneaky no-content replaceWith input
Fixes gh-2204
Ref 642e9a4557
Closes gh-1752
Closes gh-2206
2015-04-30 11:36:38 -04:00
Timmy Willison
1541664582 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:02:45 -04:00
Michał Gołębiowski
ab40725879 Core: Test all factory use cases from intro.js
There is a lot of logic in intro.js; now we test four cases:
1. (implicitly, via QUnit tests) A real browser with window being the global
2. Browserify where there are both global & window variables.
3. Node with jsdom where window is passed manually to the jQuery factory.
4. Pure Node with incorrect window passed; jQuery should throw then.

Previously the second & fourth case was not tested and the third was tested
in a way that interfered with the main test environment.

We now also test if in the Browserify case we're not creating a jQuery global
by default.

Fixes gh-2181
Closes gh-2234
2015-04-27 22:44:47 +02:00
Michał Gołębiowski
ff18d8e206 Tests: Increase QUnit timeout
Android 2.3 is very slow & times out a lot in async tests, they have to be
restarted multiple times to settle. Long test execution is not a huge problem
as Android 2.3 is tested only periodically during the night, unstable tests
are a bigger problem. This might mitigate that.

In a regular scenario almost all tests should pass so increasing the timeout
for all browsers shouldn't have a huge impact on overall test time.

Closes gh-2232
2015-04-27 20:27:05 +02:00
Michał Gołębiowski
f6de5a90dd Core: Align branches: remove an unused variable, add comments
Closes gh-2233
2015-04-27 20:19:05 +02:00
Richard Gibson
002240a6eb Deferred: Always handle progress callbacks before done/fail
Fixes gh-2013
Fixes gh-2010
Closes gh-2210
2015-04-22 15:24:37 -04:00
Bastian Buchholz
55ac56aeda Attributes: remove unnecessary element null check
Close gh-2201
2015-04-20 15:06:13 -04:00
Alexander O'Mara
892625b3c3 Core: Follow the AMD specification for define
AMD specification requires the factory argument be defined.

Close gh-2179
2015-04-13 11:53:26 -04:00
Michał Gołębiowski
bb4d888f4f CSS: Don't expose jQuery.swap
jQuery.swap was an undocumented API used only internally. With the modular
AMD system we currently have it's not necessary to expose this function
publicly under the jQuery object.

Fixes gh-2058
Closes gh-2182
2015-04-13 11:41:57 -04:00
Timmy Willison
3a0dd5a3d3 Build: update Sizzle
Fixes gh-2042
Fixes gh-1969
Closes gh-1709
2015-04-13 11:30:18 -04:00
Michał Gołębiowski
062b5267d0 Docs: Add info about Sizzle not being excludable on the compat branch
Most people just read the README that's displayed to them on GitHub which
is the one for the master branch. Let's include the info about Sizzle
not being excludable there.

Fixes gh-2184
2015-03-30 22:44:18 +02:00
Timmy Willison
2905961bf7 Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
2015-03-30 15:32:54 -04:00
Dave Methvin
7b09235cee Wrap: Support .unwrap( selector) for selective unwrapping
Fixes gh-1744
Closes gh-2003
2015-03-30 13:38:40 -04:00
Michał Gołębiowski
06f6cd1ffd Core: Update tested jsdom, drop obsolete workarounds
The latest version supporting Node.js is 3.1.2; some workarounds are not needed
for this version. For example, in jsdom 3.1.2 a document created via
document.implementation.createHTMLDocument( "" ) has a body.

Fixes gh-2153
Closes gh-2154
2015-03-30 18:58:09 +02:00
Michał Gołębiowski
f5aa89af70 Build: Update native-promise-only (again)
This should fix Android 4.0 jQuery.when tests issues, for reals this time.
2015-03-28 16:43:06 +01:00
Jon Hester
bd9a1385fe Tests: add the current version of node and iojs to the travis config
Close gh-2121
2015-03-26 17:11:30 -04:00
Michał Gołębiowski
95c0a10e15 Data: Drop the tests relying on applets
BrowserStack regularly has outdated Java in their IE instances causing our
data tests to hang & give no output. Skip the tests that create applets,
applets are treated in the same way as an embed elements which we're already
testing.

Fixes gh-1938
Closes gh-2166
2015-03-25 23:01:57 +01:00
Michał Gołębiowski
0065e1f3e3 Build: Update native-promise-only
This should fix Android 4.0 jQuery.when tests issues.

Closes gh-2159
2015-03-25 18:59:05 +01:00
Timmy Willison
98c25b7c80 Build: save sinon update for later
Fixes gh-2160
2015-03-24 11:44:55 -04:00
Michał Gołębiowski
62ae2d0fb7 Offset: Round offset value for the sake of floating errors
IE10+ may return not exactly the offset.top value set in an offset callback
if parent has fractional top offset itself. Checking for being close to the
desired result fixes the test error.

Fixes gh-2147
2015-03-23 18:14:37 +01:00
Richard Gibson
555a50d340 Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996
2015-03-20 02:00:17 -04:00
Richard Gibson
e22ef5d901 Tests: Expand CSS relative adjustment tolerance for IE
Ref 48be675200
2015-03-16 23:49:48 -04:00
Richard Gibson
48be675200 Tests: Fix CSS relative adjustment test for round-down browsers
Ref 9b03f6df88
2015-03-16 23:05:36 -04:00
Timmy Willison
7632b7454b Attributes: revert returning null for non-elements 2015-03-16 14:11:38 -04:00
Timmy Willison
5dc4616ca0 Attributes: fix failing test for new return value 2015-03-16 11:52:05 -04:00
Winston Howes
aaeed53e9f Attributes: return null when attribute does not exist
Fixes gh-2118
Close gh-2129
2015-03-16 11:21:24 -04:00
Rick Waldron
332fd941b4 Data: restore explicit data removal of private data in cleanData.
Fixes gh-2127
Closes gh-2132
2015-03-09 13:51:16 -04:00
Mr21
9b03f6df88 CSS: Support relative adjustment in any applicable unit
Fixes gh-1711
Closes gh-2011
2015-03-09 12:00:10 -04:00
Stephen Edgar
34da7d5529 Build: remove deprecated JSHint options
JSHint no longer supports `onevar`, `smarttabs` or `trailing` options.

Closes gh-2029
2015-03-08 06:30:01 +03:00
Oleg Gaidarenko
361a0d5150 Event: correct support comment
See discussion in
a5e1c9b44c
2015-03-08 06:23:49 +03:00
Rick Waldron
222ac3ad6b Data: updates to element[expando] cache
- removes descriptor allocation
  - restore simplified cache creation
  - adds early return from remove call where no data exists
  - use Object.defineProperty
  - remove unnecessary code path

Closes gh-2119
2015-03-05 14:56:54 -05:00
Rick Waldron
d702b7637a Data: move element cache to element[expando]
- avoid explicit data.discard() cleanup calls
- explicitly remove the data.events property, only when private data exists
- reduces code footprint

Fixes gh-1734
Close gh-1428
2015-03-04 17:26:47 -05:00
Jason Bedard
95fb798980 Data: avoid Object.defineProperties for nodes
Closes gh-1668
Fixes gh-1728
Ref gh-1734
Ref gh-1428
2015-03-04 14:32:24 -05:00
Oleg Gaidarenko
2380028ec4 Core: change jQuery.each and jQuery#each signatures
Fixes gh-2090
Closes gh-2097
2015-02-19 11:30:59 +03:00
Oleg Gaidarenko
a4715f4216 Ajax: remove use of jQuery#each second argument
Ref gh-2090
2015-02-19 11:30:59 +03:00