Commit Graph

5608 Commits

Author SHA1 Message Date
Timmy Willison
d18b645788 Build: append "+compat" to tag version and jQuery.fn.jquery
Fixes gh-2269
Close gh-2270
2015-05-07 10:31:30 -07:00
Timmy Willison
590eff6397 Manipulation: privatize internal domManip() function
Fixes gh-2225
2015-05-05 12:14:21 -07:00
Timmy Willison
63c1414a54 Manipulation: privatize buildFragment() function
Fixes gh-2224
2015-05-05 12:12:14 -07:00
Timmy Willison
b9b5c23fd7 Effects: add tests for jQuery.easing._default in Animation and Tween
Ref gh-2219
2015-05-05 11:26:14 -07:00
Timmy Willison
b7f9e62642 Effects: set default easing using jQuery.easing._default
Fixes gh-2219
Close gh-2218
2015-05-05 10:26:02 -07:00
Mu Haibao
d6933917d2 Core: remove isArraylike check for nodes
Fixes gh-2238
Close gh-2243
2015-05-05 10:22:23 -07:00
Calvin Metcalf
a16b77fb89 Build: Remove npm from dependencies
Close gh-2254
2015-05-05 10:20:08 -07:00
Timmy Willison
dc49f62f22 Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 09:00:41 -07:00
Timmy Willison
a2386a8250 Offset: remove ownerDocument check in offset getter
Fixes gh-2115
2015-05-05 09:00:37 -07:00
Arthur Stolyar
d4dd548aca Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
2015-05-05 09:00:27 -07:00
Timmy Willison
17ce9edf1e Selector: add test for jQuery.unique() alias 2015-05-05 07:59:26 -07:00
Timmy Willison
d9d930f79e Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
2015-05-04 15:28:44 -07:00
Timmy Willison
c916aef84f 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:17:56 -07:00
Timmy Willison
cf16f860b0 Data: camelCasing should not ignore case
Fixes gh-2070
2015-05-04 10:49:52 -04:00
Timmy Willison
0204c3089e 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:41:44 -04:00
Timmy Willison
e185aa3f06 CSS: fix dependency order for amd 2015-05-04 10:41:44 -04:00
Timmy Willison
a254f22d7b Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-04 10:41:43 -04:00
Oleg Gaidarenko
49bce47124 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
Ref 85577a348a
2015-05-03 13:59:18 +03:00
Oleg Gaidarenko
4632e55870 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
Ref a117dd05f6
2015-05-03 13:58:28 +03:00
Oleg Gaidarenko
0fc5bebb63 Event: add support comment
(cherry-picked from 9db9316609)

Ref gh-2047
2015-05-03 13:58:16 +03:00
Oleg Gaidarenko
1a067a49d1 Event: remove guard for falsy handler argument of jQuery#on method
(cherry-picked from fac67a9842)

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:57:55 +03:00
Richard Gibson
fb25bacf9b Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203

(cherry picked from commit 225bde37c9)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 13:16:28 -04:00
Richard Gibson
4cafb58ba4 Manipulation: Detect sneaky no-content replaceWith input
Fixes gh-2204
Ref 642e9a4557
Closes gh-1752
Closes gh-2206

(cherry picked from commit 4b27ae16a2)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 11:37:01 -04:00
Timmy Willison
1e7a2f3674 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:03:32 -04:00
Michał Gołębiowski
c0a07778fd 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.

(cherry-picked from ff18d8e206)

Closes gh-2232
2015-04-27 20:38:12 +02:00
Richard Gibson
35295f1c20 Deferred: Always handle progress callbacks before done/fail
Fixes gh-2013
Fixes gh-2010
Closes gh-2210

(cherry picked from commit 002240a6eb)
2015-04-22 15:25:35 -04:00
Bastian Buchholz
0de798d6c2 Attributes: remove unnecessary element null check
Close gh-2201
2015-04-20 15:06:54 -04:00
Alexander O'Mara
acf2d0c36b Core: Follow the AMD specification for define
AMD specification requires the factory argument be defined.

Close gh-2179
2015-04-13 11:53:54 -04:00
Michał Gołębiowski
02a9d9f94b 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:50:27 -04:00
Timmy Willison
345c95ae93 Build: update Sizzle
Fixes gh-2042
Fixes gh-1969
Closes gh-1709
2015-04-13 11:37:53 -04:00
Michał Gołębiowski
8992ac86cc Docs: Rename 1.x to compat 2015-03-30 22:46:29 +02:00
Timmy Willison
7bce5b0ee1 Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
2015-03-30 15:30:21 -04:00
Dave Methvin
e38138af6a Wrap: Support .unwrap( selector) for selective unwrapping
Fixes gh-1744
Closes gh-2003
(cherry picked from commit 7b09235cee)
2015-03-30 13:39:44 -04:00
Michał Gołębiowski
f9f4f9d32b Build: Update native-promise-only (again)
This should fix Android 4.0 jQuery.when tests issues, for reals this time.

(cherry-picked from f5aa89af70)
2015-03-28 16:44:05 +01:00
Jon Hester
dd2e027153 Tests: add the current version of node and iojs to the travis config
Close gh-2121
2015-03-26 17:13:39 -04:00
Michał Gołębiowski
19c0377fcc 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.

(partially cherry-picked from 95c0a10e15)

Fixes gh-2153
Closes gh-2154
2015-03-25 23:14:23 +01:00
Michał Gołębiowski
7b11131097 Build: Update native-promise-only
This should fix Android 4.0 jQuery.when tests issues.

(cherry-picked from 0065e1f3e3)

Closes gh-2159
2015-03-25 19:04:04 +01:00
Michał Gołębiowski
cd63e9c622 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.

(cherry-picked from 62ae2d0fb7)

Fixes gh-2147
2015-03-23 18:30:05 +01:00
Richard Gibson
34f2563179 Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996

(cherry picked from commit 555a50d340)
2015-03-20 02:14:04 -04:00
Richard Gibson
9d255b3e50 Tests: Expand CSS relative adjustment tolerance for IE
Ref 48be675200
Ref 4a8000b51a

(cherry picked from commit e22ef5d901)
2015-03-16 23:53:53 -04:00
Richard Gibson
4a8000b51a Tests: Fix CSS relative adjustment test for round-down browsers
Ref 9b03f6df88
Ref 6fb2cefc60

(cherry picked from commit 48be675200)
2015-03-16 23:07:39 -04:00
Timmy Willison
a403655491 Attributes: revert returning null for non-elements 2015-03-16 14:12:00 -04:00
Michał Gołębiowski
0b07c65250 Tests: Restore IE8 workarounds (Sinon timers for IE & HTML5 shiv) 2015-03-16 17:54:36 +01:00
Timmy Willison
17bd6e9cf9 Attributes: fix failing test for new return value 2015-03-16 11:54:43 -04:00
Winston Howes
afca031826 Attributes: return null when attribute does not exist
Fixes gh-2118
Close gh-2129

Conflicts:
	test/unit/attributes.js
2015-03-16 11:54:33 -04:00
Mr21
6fb2cefc60 CSS: Support relative adjustment in any applicable unit
Fixes gh-1711
Closes gh-2011

(cherry picked from commit 9b03f6df88)

Conflicts:
	src/css.js
	src/effects.js
2015-03-09 13:31:11 -04:00
Stephen Edgar
9edd95ffd7 Build: remove deprecated JSHint options
(cherry-picked from 34da7d5529)

JSHint no longer supports `onevar`, `smarttabs` or `trailing` options.

Closes gh-2029
2015-03-08 06:30:41 +03:00
Oleg Gaidarenko
fae2daadaa Event: correct support comment
(cherry-picked from 361a0d5150)

See discussion in
a5e1c9b44c
2015-03-08 06:25:01 +03:00
Oleg Gaidarenko
7cd9a36322 Core: change jQuery.each and jQuery#each signatures
(cherry-picked from 2380028ec4)
Fixes gh-2090
Closes gh-2097
2015-02-19 11:31:55 +03:00
Oleg Gaidarenko
08777336be Ajax: remove use of jQuery#each second argument
(cherry-picked from a4715f4216)
Ref gh-2090
2015-02-19 11:31:39 +03:00