]> source.dussan.org Git - jquery.git/log
jquery.git
9 years agoEffects: fix failing tests in IE8
Timmy Willison [Wed, 8 Jul 2015 17:31:09 +0000 (13:31 -0400)]
Effects: fix failing tests in IE8

9 years agoCSS: Add an integration test for issue gh-1764
Michał Gołębiowski [Mon, 22 Jun 2015 23:44:18 +0000 (01:44 +0200)]
CSS: Add an integration test for issue gh-1764

(cherry-picked from 8887106702baa69ed80baa65c5a249786bffc77e)

Refs gh-1764
Refs gh-2401
Closes gh-2425

9 years agoCSS: Make .css("width") & .css("height") return fractional values
Michał Gołębiowski [Wed, 1 Jul 2015 23:20:18 +0000 (01:20 +0200)]
CSS: Make .css("width") & .css("height") return fractional values

Fixes gh-1724
Closes gh-2454
Refs gh-2439

9 years agoDeferred: pass lint in new catch tests
Timmy Willison [Mon, 6 Jul 2015 21:10:26 +0000 (17:10 -0400)]
Deferred: pass lint in new catch tests

9 years agoDeferred: add .catch handler
Timmy Willison [Mon, 6 Jul 2015 14:13:01 +0000 (10:13 -0400)]
Deferred: add .catch handler

Fixes gh-2102

9 years agoCSS: Improve a comment explaining IE11 fullscreen bug
Michał Gołębiowski [Wed, 1 Jul 2015 21:21:21 +0000 (23:21 +0200)]
CSS: Improve a comment explaining IE11 fullscreen bug

(cherry-picked from 8e4aac8cb03ffb88373ea99629165d82ff5eccdd)

9 years agoEffects: Fix tests
Michał Gołębiowski [Sun, 28 Jun 2015 20:42:03 +0000 (22:42 +0200)]
Effects: Fix tests

Refs 6b10f9d7e9fb6d062d2bbda49196544cd059b05c
Refs gh-2340

9 years agoTests: Fix merge conflict
Corey Frang [Sat, 27 Jun 2015 00:30:52 +0000 (20:30 -0400)]
Tests: Fix merge conflict

Introduced in 6b10f9d7e9fb6d062d2bbda49196544cd059b05c originally.

Had a rebase conflict that I fixed but forgot to ⌘-s. ☹

9 years agoTests: Lower the checks rounding error 2340/head
Corey Frang [Sat, 27 Jun 2015 00:20:48 +0000 (20:20 -0400)]
Tests: Lower the checks rounding error

The CSS value rounding error was causig failures on FF and IE.

9 years agoEffects: Adding unit tests for jQuery.Animation
Corey Frang [Tue, 19 May 2015 21:48:42 +0000 (17:48 -0400)]
Effects: Adding unit tests for jQuery.Animation

Closes gh-2340

(cherry picked from commit b3b2d6c3dd51fbdc69e1942e9af75cc99a1834c2)

Conflicts:
src/effects.js

9 years agoEffects: Add tests for jQuery.Tween
Corey Frang [Mon, 18 May 2015 21:11:21 +0000 (17:11 -0400)]
Effects: Add tests for jQuery.Tween

Conflicts:
src/selector-native.js
test/index.html
test/unit/effects.js

9 years agoCSS: make the getStyles function more readable
Thomas Tortorini [Thu, 25 Jun 2015 00:54:35 +0000 (02:54 +0200)]
CSS: make the getStyles function more readable

(cherry-picked from 3a0d582cf63b6e8f77150d9c38d2bf34d0c7790e)

Closes gh-2393

9 years agoAttributes: fix IE8 issues
Gilad Peleg [Tue, 23 Jun 2015 16:42:25 +0000 (19:42 +0300)]
Attributes: fix IE8 issues

Follow-up for d0388e9e806ca3b30e7bbaaa1c336b7c98dc5f88

9 years agoCore: organize prop & attr code to be similar
Gilad Peleg [Tue, 23 Jun 2015 04:01:06 +0000 (07:01 +0300)]
Core: organize prop & attr code to be similar

Ref 5153b5334eb2c8317372b46209bd9d092a91afdc
Closes gh-2426

9 years agoCSS: Work around an IE11 fullscreen dimensions bug
Martin Naumann [Tue, 16 Jun 2015 21:55:21 +0000 (23:55 +0200)]
CSS: Work around an IE11 fullscreen dimensions bug

(cherry-picked from 90d828bad0d6d318d73d6cf6209d9dc7ac13878c)

Fixes gh-1764
Closes gh-2401

9 years agoCore: Change support.ownLast to support.ownFirst
Michał Gołębiowski [Wed, 17 Jun 2015 17:27:06 +0000 (19:27 +0200)]
Core: Change support.ownLast to support.ownFirst

jQuery.support.ownLast was the only support test that was supposed
to be false when it succeeded. It was confusing.

Fixes gh-2406
Closes gh-2408

9 years agoOffset: add tests for hidden elements + scroll
Timmy Willison [Tue, 16 Jun 2015 17:24:12 +0000 (13:24 -0400)]
Offset: add tests for hidden elements + scroll

- Also add comments to hidden/disconnected tests noting
  this is to ensure consistency between branches

9 years agoOffset: getBounding doesn't return width/height in IE8. Fixes test.
Timmy Willison [Tue, 16 Jun 2015 16:49:22 +0000 (12:49 -0400)]
Offset: getBounding doesn't return width/height in IE8. Fixes test.

9 years agoOffset: no need to check for ownerDocument
Timmy Willison [Tue, 16 Jun 2015 16:23:43 +0000 (12:23 -0400)]
Offset: no need to check for ownerDocument

9 years agoOffset: revert to jQuery.contains for IE8's sake (compat only)
Timmy Willison [Tue, 16 Jun 2015 16:08:57 +0000 (12:08 -0400)]
Offset: revert to jQuery.contains for IE8's sake (compat only)

- getClientRects() throws on disconnected elements in IE8 only

9 years agoOffset: return before getBoundingClientRect to avoid error in IE8-11
Timmy Willison [Tue, 16 Jun 2015 15:21:58 +0000 (11:21 -0400)]
Offset: return before getBoundingClientRect to avoid error in IE8-11

9 years agoOffset: return zeros for disconnected/hidden elements
Timmy Willison [Mon, 15 Jun 2015 15:02:08 +0000 (11:02 -0400)]
Offset: return zeros for disconnected/hidden elements

Fixes gh-2310
Close gh-2396

9 years agoRevert "Offset: allow offset setter to throw for disconnected elements"
Timmy Willison [Mon, 15 Jun 2015 14:56:29 +0000 (10:56 -0400)]
Revert "Offset: allow offset setter to throw for disconnected elements"

This reverts commit 0d11c1182f2012cd6eb06ce1e3fa5a495af9bee3.

9 years agoTests: Remove test/data/ua.txt
Michał Gołębiowski [Tue, 16 Jun 2015 14:25:16 +0000 (16:25 +0200)]
Tests: Remove test/data/ua.txt

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 e831856490d2212bdbaff4cd76137b93ccf26d92)

Fixes gh-2398

9 years agoTests: Remove Edge version from the user agent
Michał Gołębiowski [Tue, 16 Jun 2015 12:45:30 +0000 (14:45 +0200)]
Tests: Remove Edge version from the user agent

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

(cherry-picked from 5a1217e40193c8884155ccaf415091d326ddb52a)

Refs 8e111df641cca3e1b75b31a1971bfc89014b4ded

9 years agoTests: Add Microsoft Edge results (from Windows 10 build 10130)
Michał Gołębiowski [Sun, 14 Jun 2015 00:09:34 +0000 (02:09 +0200)]
Tests: Add Microsoft Edge results (from Windows 10 build 10130)

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

Refs 8e111df641cca3e1b75b31a1971bfc89014b4ded

9 years agoTests: Correct a typo in the regex matching Safari 8
Michał Gołębiowski [Sun, 14 Jun 2015 00:05:05 +0000 (02:05 +0200)]
Tests: Correct a typo in the regex matching Safari 8

(cherry-picked from c17543fd3c14ff86c448dbb90f9fe1223661a73b)

9 years agoManipulation: Remove an internal argument to the remove method
Michał Gołębiowski [Sat, 13 Jun 2015 22:34:05 +0000 (00:34 +0200)]
Manipulation: Remove an internal argument to the remove method

(cherry-picked from 349edbd6c53aa93d4fd207d3c0c4c24a7b0314dd)

Fixes gh-2301
Closes gh-2366

9 years agoEvent: Remove an internal argument to the on method
Michał Gołębiowski [Mon, 1 Jun 2015 19:34:57 +0000 (21:34 +0200)]
Event: Remove an internal argument to the on method

(cherry-picked from 04a29696e5b176ac66401120e433d52425222f0f)

Refs gh-2301

9 years agoCore: Make jQuery objects iterable
Michał Gołębiowski [Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)]
Core: Make jQuery objects iterable

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 bb026fc12c3c2ad37f47f0919e484bddcdc3d291)

Fixes gh-1693

9 years agoBuild: Update grunt-contrib-jshint
Michał Gołębiowski [Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)]
Build: Update grunt-contrib-jshint

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 1556c4661af647e355a9a5c0a814012955e231bc)

9 years agoBuild: remove bower.json lint target
Oleg Gaidarenko [Thu, 11 Jun 2015 13:25:36 +0000 (16:25 +0300)]
Build: remove bower.json lint target

(Cherry-picked from 285cfbfccc4c61d50ee8e0fe6e23695dc663e166)
Ref 26eca143c2dd857b9e3d1c446a467fed16e903d2

9 years agoEvent: correct an unfinished comment
Oleg Gaidarenko [Fri, 5 Jun 2015 19:23:59 +0000 (22:23 +0300)]
Event: correct an unfinished comment

9 years agoEvent: remove preDispatch hook & simplify "simulate" signature
Oleg Gaidarenko [Fri, 5 Jun 2015 19:21:26 +0000 (22:21 +0300)]
Event: remove preDispatch hook & simplify "simulate" signature

Ref 3655c4e1908cc3ee49487e7e26e8cfca9fe8146d

9 years agoCSS: Don't name the anonymous swap function
Michał Gołębiowski [Mon, 1 Jun 2015 17:55:18 +0000 (19:55 +0200)]
CSS: Don't name the anonymous swap function

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 02a9d9f94b623ea8664b7b39fd57feb7de6c6a14

9 years agoBuild: Update the license attribute
Gilad Peleg [Tue, 19 May 2015 11:05:21 +0000 (14:05 +0300)]
Build: Update the license attribute

Specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/

(cherry-picked from 8e92e1ea3c533f3be82c99bbafaaf74b5bdedecc)

Fixes gh-2331
Closes gh-2330

9 years agoAjax: Remove remnants of the load event alias handling
Michał Gołębiowski [Sat, 30 May 2015 17:09:32 +0000 (19:09 +0200)]
Ajax: Remove remnants of the load event alias handling

(cherry-picked from 38a669735d08bcbd28cfb0d77eee82c67aa89eeb)

Refs 0705be475092aede1eddae01319ec931fb9c65fc
Refs gh-2287
Closes gh-2362

9 years agoCSS: Don't cache unrecognized CSS property names
Michał Gołębiowski [Mon, 11 May 2015 21:23:09 +0000 (23:23 +0200)]
CSS: Don't cache unrecognized CSS property names

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 d471842b3e3af83c9a1be06b5d16f75bfa96af8c)

Fixes gh-2015
Closes gh-2298

9 years agoEvent: improve originalEvent hack
Oleg Gaidarenko [Wed, 20 May 2015 15:14:13 +0000 (18:14 +0300)]
Event: improve originalEvent hack

Ref 6df669f0fb87cd9975a18bf6bbe3c3548afa4fee
Ref gh-2336

9 years agoDocs: remove redundant instruction from the readme
Oleg Gaidarenko [Fri, 29 May 2015 16:45:02 +0000 (19:45 +0300)]
Docs: remove redundant instruction from the readme

(Cherry-picked from 3c9277086742fe3a38a268ef97184be34e294655)
Thanks @elas7

Fixes gh-2359

9 years agoBuild: update requirejs dependency to 2.1.17
Oleg Gaidarenko [Tue, 19 May 2015 15:47:24 +0000 (18:47 +0300)]
Build: update requirejs dependency to 2.1.17

Fixes gh-2290
Ref a644101ed04d0beacea864ce805e0c4f86ba1cd1

9 years agoAjax: Fix the XHR fallback logic for IE8
Michał Gołębiowski [Tue, 19 May 2015 12:06:15 +0000 (14:06 +0200)]
Ajax: Fix the XHR fallback logic for IE8

The logic for IE8 has been incorrectly reversed: every non-local request
outside of the whitelist was run via the native XHR. This commit reverses
this logic and adds back a fallback to the ActiveX XHR if the native one
fails even after the regex detection.

Refs 61f812b7e7b88dd6e0078c241e4c88905ea51562

9 years agoEvent: remove deprecated event aliases
Oleg Gaidarenko [Sat, 9 May 2015 18:39:49 +0000 (21:39 +0300)]
Event: remove deprecated event aliases

(Cherry-picked from 0705be475092aede1eddae01319ec931fb9c65fc)
Fixes gh-2286
Closes gh-2287
Ref trac-11733

9 years agoAttributes: don't test SVG CSS-class manipulation in IE8
Oleg Gaidarenko [Tue, 19 May 2015 10:12:11 +0000 (13:12 +0300)]
Attributes: don't test SVG CSS-class manipulation in IE8

Ref 20aaed367f993f3c2aa204183d82d0d73efa114f

9 years agoEvent: provide verbose info for focus(in | out) & rename support props
Oleg Gaidarenko [Tue, 19 May 2015 10:08:01 +0000 (13:08 +0300)]
Event: provide verbose info for focus(in | out) & rename support props

Ref c074006a69db73a116dc04ec78844468a8cea7d3
Ref gh-2312

9 years agoAjax: Rename Spartan to Edge in a comment
Michał Gołębiowski [Mon, 18 May 2015 21:03:53 +0000 (23:03 +0200)]
Ajax: Rename Spartan to Edge in a comment

9 years agoAjax: Use the native XHR for all non-local requests in IE9+
Michał Gołębiowski [Mon, 30 Mar 2015 18:00:38 +0000 (20:00 +0200)]
Ajax: Use the native XHR for all non-local requests in IE9+

IE throws an error on cross-domain PATCH requests if issued via the ActiveX
interface. This commit switches the logic to use the native XHR in all
non-local requests.

Fixes gh-1684
Closes gh-2183

9 years agoBuild: bower.json: remove moot `version` field
Chris Rebert [Wed, 13 May 2015 03:13:46 +0000 (20:13 -0700)]
Build: bower.json: remove moot `version` field

Related:
https://github.com/bower/bower.json-spec/commit/a325da3d79baab018c572d75dc1781b12322f6cd

Close gh-2304

9 years agoOffset: account for scroll when calculating position
Richard McDaniel [Thu, 16 Oct 2014 19:32:46 +0000 (15:32 -0400)]
Offset: account for scroll when calculating position

Fixes gh-1708
Close gh-1714

9 years agoCore: remove custom ready event
Timmy Willison [Wed, 6 May 2015 17:47:07 +0000 (10:47 -0700)]
Core: remove custom ready event

Fixes gh-2264
Close gh-2265

9 years agoAttributes: add SVG class manipulation
Timmy Willison [Wed, 6 May 2015 20:30:16 +0000 (13:30 -0700)]
Attributes: add SVG class manipulation

- Note: support for SVG is limited in jQuery,
  but this is one area where the cost vs benefit ratio
  was acceptable.

Fixes gh-2199
Close gh-2268

9 years agoTests: fix tests in accordance with new :visible behavior
Timmy Willison [Tue, 12 May 2015 13:58:55 +0000 (09:58 -0400)]
Tests: fix tests in accordance with new :visible behavior

9 years agoCSS: fix :visible/:hidden selectors for inline element w/ content
Timmy Willison [Fri, 8 May 2015 22:27:54 +0000 (15:27 -0700)]
CSS: fix :visible/:hidden selectors for inline element w/ content

- Reverts behavior from 10399dd, which we never released.
  BR and inline elements are considered visible.
- The possibility of dropping .offsetWidth and .offsetHeight
  was debunked by this perf:
  http://jsperf.com/visible-hidden-and-getclientrects

Fixes gh-2227
Close gh-2281

9 years agoCore: Align code in intro.js with master
Michał Gołębiowski [Mon, 11 May 2015 17:00:00 +0000 (19:00 +0200)]
Core: Align code in intro.js with master

Since we're testing the factory code from intro.js on master only it's best
to have those two files almost identical.

This commit leaves only one difference between them: "jQuery Compat" vs.
"jQuery" in the second line.

Closes gh-2294

9 years agoCSS: Ignore the CSS cascade in show()/hide()/etc.
Richard Gibson [Thu, 2 Apr 2015 20:57:33 +0000 (16:57 -0400)]
CSS: Ignore the CSS cascade in show()/hide()/etc.

Fixes gh-1767
Fixes gh-2071
Closes gh-2180

(cherry picked from commit 86419b10bfa5e3b71a7d416288ab806d47a31d1f)

Conflicts:
src/css.js
src/css/defaultDisplay.js
src/effects.js
test/data/testsuite.css
test/unit/css.js
test/unit/effects.js

9 years agoBuild: append "+compat" to tag version and jQuery.fn.jquery
Timmy Willison [Wed, 6 May 2015 21:36:47 +0000 (14:36 -0700)]
Build: append "+compat" to tag version and jQuery.fn.jquery

Fixes gh-2269
Close gh-2270

9 years agoManipulation: privatize internal domManip() function
Timmy Willison [Tue, 5 May 2015 18:52:58 +0000 (11:52 -0700)]
Manipulation: privatize internal domManip() function

Fixes gh-2225

9 years agoManipulation: privatize buildFragment() function
Timmy Willison [Tue, 5 May 2015 18:44:55 +0000 (11:44 -0700)]
Manipulation: privatize buildFragment() function

Fixes gh-2224

9 years agoEffects: add tests for jQuery.easing._default in Animation and Tween
Timmy Willison [Tue, 5 May 2015 18:22:40 +0000 (11:22 -0700)]
Effects: add tests for jQuery.easing._default in Animation and Tween

Ref gh-2219

9 years agoEffects: set default easing using jQuery.easing._default
Timmy Willison [Tue, 5 May 2015 17:24:20 +0000 (10:24 -0700)]
Effects: set default easing using jQuery.easing._default

Fixes gh-2219
Close gh-2218

9 years agoCore: remove isArraylike check for nodes
Mu Haibao [Wed, 29 Apr 2015 16:53:30 +0000 (00:53 +0800)]
Core: remove isArraylike check for nodes

Fixes gh-2238
Close gh-2243

9 years agoBuild: Remove npm from dependencies
Calvin Metcalf [Sat, 2 May 2015 13:08:30 +0000 (09:08 -0400)]
Build: Remove npm from dependencies

Close gh-2254

9 years agoOffset: allow offset setter to throw for disconnected elements
Timmy Willison [Tue, 5 May 2015 15:33:50 +0000 (08:33 -0700)]
Offset: allow offset setter to throw for disconnected elements

Fixes gh-2114

9 years agoOffset: remove ownerDocument check in offset getter
Timmy Willison [Tue, 5 May 2015 15:31:39 +0000 (08:31 -0700)]
Offset: remove ownerDocument check in offset getter

Fixes gh-2115

9 years agoOffset: Fix .offset() to correctly work with ShadowDOM
Arthur Stolyar [Tue, 5 May 2015 15:16:29 +0000 (08:16 -0700)]
Offset: Fix .offset() to correctly work with ShadowDOM

Fixes gh-1784
Close gh-2043

9 years agoSelector: add test for jQuery.unique() alias
Timmy Willison [Tue, 5 May 2015 14:59:12 +0000 (07:59 -0700)]
Selector: add test for jQuery.unique() alias

9 years agoSelector: add jQuery.uniqueSort; deprecate jQuery.unique
Timmy Willison [Mon, 4 May 2015 22:27:12 +0000 (15:27 -0700)]
Selector: add jQuery.uniqueSort; deprecate jQuery.unique

Fixes gh-2228

9 years agoCore: allow init to accept an alternate rootjQuery for migrate's sake
Timmy Willison [Mon, 4 May 2015 22:16:28 +0000 (15:16 -0700)]
Core: allow init to accept an alternate rootjQuery for migrate's sake

- This will be tested in migrate

Fixes gh-2101

9 years agoData: camelCasing should not ignore case
Timmy Willison [Mon, 4 May 2015 14:49:21 +0000 (10:49 -0400)]
Data: camelCasing should not ignore case

Fixes gh-2070

9 years agoData: always camelCase keys in .data()
Timmy Willison [Mon, 4 May 2015 13:36:58 +0000 (09:36 -0400)]
Data: always camelCase keys in .data()

- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn

Fixes gh-2257

9 years agoCSS: fix dependency order for amd
Timmy Willison [Sun, 3 May 2015 12:33:51 +0000 (08:33 -0400)]
CSS: fix dependency order for amd

9 years agoData: do not include digits when camelCasing
Timmy Willison [Sun, 3 May 2015 12:22:32 +0000 (08:22 -0400)]
Data: do not include digits when camelCasing

Fixes gh-1751

9 years agoCore:CSS:Event: simplification of native method signatures
Oleg Gaidarenko [Sat, 2 May 2015 17:54:11 +0000 (20:54 +0300)]
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 85577a348a72ae765e0d7330b9e82985d23c94b7

9 years agoAjax: remove "onunload" event handler
Oleg Gaidarenko [Sun, 3 May 2015 10:39:33 +0000 (13:39 +0300)]
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 a117dd05f638a078c21dc57f19966f4ae81f98f0

9 years agoEvent: add support comment
Oleg Gaidarenko [Sat, 2 May 2015 17:51:03 +0000 (20:51 +0300)]
Event: add support comment

(cherry-picked from 9db9316609c2881dbb6abc49efc3aa91a57a02ad)

Ref gh-2047

9 years agoEvent: remove guard for falsy handler argument of jQuery#on method
Oleg Gaidarenko [Thu, 30 Apr 2015 17:05:18 +0000 (20:05 +0300)]
Event: remove guard for falsy handler argument of jQuery#on method

(cherry-picked from fac67a984268ef8f7de952666fda6d8d32754f5f)

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

9 years agoManipulation: Make an HTML interception point
Richard Gibson [Fri, 10 Apr 2015 19:57:18 +0000 (15:57 -0400)]
Manipulation: Make an HTML interception point

Fixes gh-1747
Closes gh-2203

(cherry picked from commit 225bde37c997f5ddd9fe00fdfb8e9a43545cfbbc)

Conflicts:
src/manipulation.js
test/unit/manipulation.js

9 years agoManipulation: Detect sneaky no-content replaceWith input
Richard Gibson [Mon, 13 Apr 2015 20:05:48 +0000 (16:05 -0400)]
Manipulation: Detect sneaky no-content replaceWith input

Fixes gh-2204
Ref 642e9a45579cfa90861b8ea71a95dd077775caaf
Closes gh-1752
Closes gh-2206

(cherry picked from commit 4b27ae16a2b911f75b341b56d9d939bc65a9657a)

Conflicts:
src/manipulation.js
test/unit/manipulation.js

9 years agoCore: add workaround for iOS JIT error in isArrayLike
Timmy Willison [Sat, 4 Apr 2015 19:34:07 +0000 (15:34 -0400)]
Core: add workaround for iOS JIT error in isArrayLike

Fixes gh-2145

9 years agoTests: Increase QUnit timeout
Michał Gołębiowski [Sun, 26 Apr 2015 15:11:10 +0000 (17:11 +0200)]
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 ff18d8e2060ae7c15c7694dc6bcbbeb9cbfbdaa4)

Closes gh-2232

9 years agoDeferred: Always handle progress callbacks before done/fail
Richard Gibson [Tue, 14 Apr 2015 17:30:58 +0000 (13:30 -0400)]
Deferred: Always handle progress callbacks before done/fail

Fixes gh-2013
Fixes gh-2010
Closes gh-2210

(cherry picked from commit 002240a6eb1cee2fcd886d5cf44893eb67f246f1)

9 years agoAttributes: remove unnecessary element null check
Bastian Buchholz [Mon, 13 Apr 2015 08:37:42 +0000 (10:37 +0200)]
Attributes: remove unnecessary element null check

Close gh-2201

9 years agoCore: Follow the AMD specification for define
Alexander O'Mara [Mon, 30 Mar 2015 15:52:00 +0000 (11:52 -0400)]
Core: Follow the AMD specification for define

AMD specification requires the factory argument be defined.

Close gh-2179

9 years agoCSS: Don't expose jQuery.swap
Michał Gołębiowski [Mon, 30 Mar 2015 17:19:15 +0000 (19:19 +0200)]
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

9 years agoBuild: update Sizzle
Timmy Willison [Mon, 13 Apr 2015 15:30:18 +0000 (11:30 -0400)]
Build: update Sizzle

Fixes gh-2042
Fixes gh-1969
Closes gh-1709

9 years agoDocs: Rename 1.x to compat
Michał Gołębiowski [Mon, 30 Mar 2015 20:46:29 +0000 (22:46 +0200)]
Docs: Rename 1.x to compat

9 years agoAttributes: revert returning null for non-existant attributes
Timmy Willison [Mon, 30 Mar 2015 19:30:21 +0000 (15:30 -0400)]
Attributes: revert returning null for non-existant attributes

Ref https://github.com/jquery/jquery/issues/2118

9 years agoWrap: Support .unwrap( selector) for selective unwrapping
Dave Methvin [Mon, 12 Jan 2015 03:17:41 +0000 (22:17 -0500)]
Wrap: Support .unwrap( selector) for selective unwrapping

Fixes gh-1744
Closes gh-2003
(cherry picked from commit 7b09235ceed57bbcc26fc2c76147eb4e95ebdb92)

9 years agoBuild: Update native-promise-only (again)
Michał Gołębiowski [Sat, 28 Mar 2015 15:42:43 +0000 (16:42 +0100)]
Build: Update native-promise-only (again)

This should fix Android 4.0 jQuery.when tests issues, for reals this time.

(cherry-picked from f5aa89af7029ae6b9203c2d3e551a8554a0b4b89)

9 years agoTests: add the current version of node and iojs to the travis config
Jon Hester [Thu, 5 Mar 2015 23:07:25 +0000 (23:07 +0000)]
Tests: add the current version of node and iojs to the travis config

Close gh-2121

9 years agoCore: Update tested jsdom, drop obsolete workarounds
Michał Gołębiowski [Wed, 25 Mar 2015 22:10:12 +0000 (23:10 +0100)]
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 95c0a10e15477a5031185e2d656d896905562afa)

Fixes gh-2153
Closes gh-2154

9 years agoBuild: Update native-promise-only
Michał Gołębiowski [Tue, 24 Mar 2015 10:54:36 +0000 (11:54 +0100)]
Build: Update native-promise-only

This should fix Android 4.0 jQuery.when tests issues.

(cherry-picked from 0065e1f3e3021fc2bcb32e915177498bca034b34)

Closes gh-2159

9 years agoOffset: Round offset value for the sake of floating errors
Michał Gołębiowski [Mon, 16 Mar 2015 17:23:21 +0000 (18:23 +0100)]
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 62ae2d0fb7ac011bf2ad778f8158de408e785927)

Fixes gh-2147

9 years agoDeferred: Backwards-compatible standards interoperability
Richard Gibson [Mon, 29 Dec 2014 19:14:13 +0000 (14:14 -0500)]
Deferred: Backwards-compatible standards interoperability

Fixes gh-1722
Closes gh-1996

(cherry picked from commit 555a50d340706e3e1e0de09231050493d0ad841e)

9 years agoTests: Expand CSS relative adjustment tolerance for IE
Richard Gibson [Tue, 17 Mar 2015 03:05:36 +0000 (23:05 -0400)]
Tests: Expand CSS relative adjustment tolerance for IE

Ref 48be675200e817f40fa8ec25da1be2ab0839d28d
Ref 4a8000b51a9854e21361e435e4c9b9cbd8ac458a

(cherry picked from commit e22ef5d9017c44cad97ae541fefce76cc455edcb)

9 years agoTests: Fix CSS relative adjustment test for round-down browsers
Richard Gibson [Tue, 17 Mar 2015 03:05:36 +0000 (23:05 -0400)]
Tests: Fix CSS relative adjustment test for round-down browsers

Ref 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17
Ref 6fb2cefc602cf8bd8b85373f480e978bb8978e37

(cherry picked from commit 48be675200e817f40fa8ec25da1be2ab0839d28d)

9 years agoAttributes: revert returning null for non-elements
Timmy Willison [Mon, 16 Mar 2015 18:11:38 +0000 (14:11 -0400)]
Attributes: revert returning null for non-elements

9 years agoTests: Restore IE8 workarounds (Sinon timers for IE & HTML5 shiv)
Michał Gołębiowski [Mon, 16 Mar 2015 16:54:36 +0000 (17:54 +0100)]
Tests: Restore IE8 workarounds (Sinon timers for IE & HTML5 shiv)

9 years agoAttributes: fix failing test for new return value
Timmy Willison [Mon, 16 Mar 2015 15:52:05 +0000 (11:52 -0400)]
Attributes: fix failing test for new return value

9 years agoAttributes: return null when attribute does not exist
Winston Howes [Mon, 16 Mar 2015 15:20:16 +0000 (11:20 -0400)]
Attributes: return null when attribute does not exist

Fixes gh-2118
Close gh-2129

Conflicts:
test/unit/attributes.js