Timmy Willison
4d6b4536b2
Revert "Event: Trigger checkbox and radio click events identically"
...
This reverts commit b442abacbb
.
2017-03-20 12:24:49 -04:00
Timmy Willison
473d2ea7d5
Dimensions: fall back to offsetWidth/Height for inline elems
...
Close gh-3577
Fixes gh-3571
2017-03-20 12:16:12 -04:00
Steve Mao
fcc9a9ec96
Tests: move readywait to an iframe test
...
Close gh-3576
Fixes gh-3573
2017-03-20 11:37:15 -04:00
Timmy Willison
96533cd0e8
CSS: remove dead code in getWidthOrHeight
...
- getCSS already falls back to inline styles
Ref gh-3561
2017-03-13 13:33:05 -04:00
Timmy Willison
c920ff6e32
Dimensions: ignore transforms when retrieving width/height
...
Close gh-3561
Fixes gh-3193
2017-03-13 13:32:16 -04:00
Connor Atherton
619bf98d5b
CSS: Support custom properties
...
Fixes gh-3144
Closes gh-3199
Closes gh-3557
2017-03-07 14:52:08 +01:00
Michał Gołębiowski
be041e4da4
Core: move jQuery.fn.nodeName to jQuery.nodeName, add tests
...
Ref ac9e3016
Close gh-3560
2017-03-06 18:40:51 -05:00
Timmy Willison
56136897f2
Build: fix tests in AMD mode
...
- nodeName was included at the wrong spot in dependency lists
2017-03-06 18:31:44 -05:00
Oleg Gaidarenko
6d43dc4233
Effects: stabilize rAF logic & align timeout logic with it
...
rAF logic was introduced almost three years ago relative to this commit,
as a primary method for scheduling animation (see gh-1578 pull).
With it there was two substantial changes - one was explicitly mentioned
and the other was not.
First, if browser window was hidden aka `document.hidden === true`
it would immediately execute all scheduled animation without waiting
for time pass i.e. tick time become `0` instead of 13 ms of a default value.
Which created possibility for circular executions in case if `complete`
method executed the same animation (see gh-3434 issue).
And the second one - since then there was two ways of scheduling animation:
with `setInterval` and `requestAnimationFrame`, but there was a
difference in their execution.
In case of `setInterval` it waited default `jQuery.fx.interval` value before
actually starting the new tick, not counting the first step which wasn't
set to be executed through tick method (aka `jQuery.fx.tick`).
Whereas `requestAnimationFrame` first scheduled the call and executed
the `step` method right after that, counting the first call of
`jQuery.fx.timer`, `tick` was happening twice in one frame.
But since tests explicitly disabled rAF method i.e.
`requestAnimationFrame = null` and checking only `setInterval` logic,
since it's impossible to do it otherwise - we missed that change.
Faulty logic also was presented with `cancelAnimationFrame`, which couldn't
clear any timers since `raf` scheduler didn't define new `timerId` value.
Because that change was so subtle, apparently no user noticed it proving
that both `cancelAnimationFrame` and `clearInterval` code paths are redundant.
Since `cancelAnimationFrame` didn't work properly and rAF is and was a primary
used code path, plus the same approach is used in other popular animation libs.
Therefore those code paths were removed.
These changes also replace two different functions which schedule the animation
with one, which checks what type of logic should be used and executes it
appropriatley, but for secondary path it now uses `setTimeout` making it more
consistent with rAF path.
Since ticks are happening globally we also don't require to listen
`visibilitychange` event.
It also changes the way how first call is scheduled so execution of
animation will not happen twice in one frame.
No new tests were not introduced, since now `setTimeout` logic should be
equivalent to the rAF one, but one test was changed since now we actually
execute animation at the first tick.
Fixes gh-3434
Closes gh-3559
2017-03-06 19:17:14 +01:00
karan-96
ac9e301664
Core: Deprecate jQuery.nodeName
...
Fixes gh-3475
Closes gh-3505
2017-03-01 11:48:11 +01:00
Manoj Kumar
bd984f0ee2
Core: Move holdReady to deprecated
...
Fixes gh-3288
Close gh-3306
2017-02-13 10:55:39 -05:00
南漂一卒
3e3b09d68d
Traversing: $.fn.contents() supports HTMLTemplateElement
...
Fixes gh-3436
Closes gh-3462
2017-01-29 23:32:15 +01:00
Alex Padilla
b442abacbb
Event: Trigger checkbox and radio click events identically
...
Fixes gh-3423
Closes gh-3494
2017-01-19 16:51:49 -05:00
Richard Gibson
3c89329cb2
Effects: Resolve issues revealed by recent Callbacks fix
...
Notify full progress before resolving empty animations
Register animation callbacks before their ticker
Remove the right timer when immediately-done animations spawn more
Ref 9d822bc1c1
Fixes gh-3502
Fixes gh-3503
Closes gh-3496
2017-01-16 10:18:49 -08:00
Richard Gibson
efdb8a46e4
Manipulation: Restrict the tbody search to child nodes
...
For performance, use a querySelectorAll path instead of Javascript iteration.
http://codepen.io/anon/pen/vywJjx?editors=1010
Fixes gh-3439
Closes gh-3463
2017-01-09 11:37:12 -08:00
Richard Gibson
9d822bc1c1
Callbacks: Prevent add() from unlocking with-memory lists
...
Fixes gh-3469
Closes gh-3470
2017-01-09 11:33:39 -08:00
Richard Gibson
bf3a43eff8
Offset: Eliminate little-used internal function
...
Fixes gh-3449
Closes gh-3456
2016-12-19 12:00:46 -05:00
Michał Gołębiowski
cbc8638c38
Build: ESLint setup improvements
...
1. Use the short name of the preset in the config.
2. Run ESLint first on non-minified files.
3. Explicitly specify environments in every config file (those settings cascade
which means we've been assuming a Node.js environment where we shouldn't have).
2016-12-19 02:07:03 +01:00
Richard Gibson
5d79c64663
Deferred: Stop inventing jQuery.when() resolution values
...
Fixes gh-3442
Closes gh-3445
2016-12-16 11:45:35 -05:00
Jason Bedard
1777899a74
Offset: report offset for 0 sized elements
...
Fixes gh-3267
Closes gh-3367
2016-12-12 22:32:11 -08:00
Timmy Willison
7fbab88110
Build: jQuery Foundation -> JS Foundation
...
Close gh-3414
2016-12-05 11:54:38 -05:00
Manoj Kumar
1b9575b9d1
Core: Deprecate jQuery.isArray
...
Fixes gh-2961
Closes gh-3278
2016-11-30 12:22:24 +01:00
Steve Mao
fcb8a1b3eb
Core: remove precautionary variable readyFiring
...
Close gh-3284
2016-09-19 13:08:39 -04:00
Richard Gibson
b5d09b90ca
Core: Compress stripAndCollapse
...
Close gh-3318
2016-09-19 09:19:48 -04:00
Timmy Willison
3bbcce68d7
Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse
...
- Renames and changes rnotwhite to focus on HTML whitespace chars
- Change internal use of jQuery.trim to more accurate strip and collapse
- Adds tests to ensure HTML space characters are retained where valid
- Doesn't add tests where the difference is inconsequential and
existing tests are adequate.
Fixes gh-3003
Fixes gh-3072
Close gh-3316
2016-09-15 10:40:27 -04:00
Timmy Willison
52e24471c8
Core: expose noConflict in AMD mode
...
- For compability reasons, we had already added the global
in AMD mode, but without noConflict. This adds back noConflict
to AMD (which fixes noConflict mode in the tests).
Fixes gh-2930
2016-08-15 11:54:55 -04:00
Dave Methvin
560c0c6f99
Traversing: Let .not(arraylike) pass non-element nodes
...
Fixes gh-3226
Closes gh-3261
2016-08-10 10:04:24 -04:00
Dave Methvin
cd4ad00478
Ajax: Don't mangle the URL when removing the anti-cache param
...
Fixes gh-3229
Closes gh-3253
2016-08-08 12:13:22 -04:00
Richard Gibson
76c5237cc4
Event: Optimize delegated event processing
...
Closes gh-3255
2016-08-04 23:52:12 -04:00
Oleg Gaidarenko
6acf4a7946
Build: .eslintrc -> .eslintrc.json
...
`.eslintrc` format is deprecated -
http://eslint.org/docs/user-guide/configuring#configuration-file-formats
Fixes gh-3248
Closes gh-3247
2016-08-02 21:16:20 +03:00
Oleg Gaidarenko
e4fd41f8fa
Build: Update eslint config and fix associated errors
2016-07-15 21:42:25 +04:00
Michał Gołębiowski
6e605afb1f
Build: Fix the regex removing the ESLint comment from wrapper.js
...
The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.
Also, the spacing of the pragma comment was updated to match other comments.
2016-07-13 10:49:13 +02:00
Oleg Gaidarenko
522f546d96
Build: More ESLint related changes
2016-07-09 00:49:43 +03:00
Michał Gołębiowski
ad6a94c3f1
Core: Re-throw errors that happened in callbacks wrapped in jQuery ready
...
Also, expose jQuery.readyException that allows to overwrite the default
ready error handler.
Fixes gh-3174
Closes gh-3210
2016-07-07 10:23:06 +02:00
Oleg Gaidarenko
58c6ca9822
Build: ESLint details
...
Use eslint pragmas, fix new errors, etc
Closes gh-3148
2016-06-11 10:41:33 +03:00
Oleg Gaidarenko
f80ae67c53
Build: Switch from jscs+jshint to eslint
2016-06-11 10:39:51 +03:00
Scott González
7d21f02b9e
Event: Add the most commonly used pointer event properties
...
Ref gh-3104
Close gh-3152
2016-06-09 13:16:20 -04:00
Michał Gołębiowski
d5dae259eb
Deferred: Propagate progress correctly from unwrapped promises
...
Progress parameters are now correctly propagated from a deferred to which
another deferred resolved unwrapping it.
Thanks to @gibson042 for the report and a clear description of the problem
and the needed fix.
Fixes gh-3062
Closes gh-3150
2016-06-09 14:53:34 +02:00
Michał Gołębiowski
e06fda69f0
Attributes: Avoid infinite recursion on non-lowercase attribute getters
...
Attribute hooks are determined for the lowercase versions of attribute names
but this has not been reflected in the bool attribute hooks. The code that
temporarily removed a handler to avoid an infinite loop was removing an
incorrect handler causing stack overflow.
Fixes gh-3133
Refs gh-2914
Refs gh-2916
Closes gh-3134
2016-06-03 22:48:43 +02:00
Michał Gołębiowski
5430c540df
Docs: Fix an incorrect comment in the attributes module
...
Attributes are no longer always treated as lowercase, although hooks for
them are. This commit fixes a no longer correct comment.
2016-06-03 11:51:33 +02:00
Dave Methvin
2df590e4ec
Event: Allow constructing a jQuery.Event without a target
...
Fixes gh-3139
Closes gh-3140
2016-06-02 20:56:47 -04:00
Oleg Gaidarenko
94efb79929
Events: don't execute native stop(Immediate)Propagation from simulation
...
In Firefox, called `stop(Immediate)Propagation` methods,
in capturing phase prevents receiving focus
Fixes gh-3111
2016-05-19 21:56:39 +04:00
Dave Methvin
07c11c03cc
Deferred: Give better stack diagnostics on exceptions
...
Ref gh-2736
The exception stack has the name of the immediately outer function where the
exception occurred, which can be very handy for tracing errors. Since we already
have the exception object we might as well use it.
2016-05-11 20:21:04 -04:00
Dave Methvin
f5958085cf
Event: Add touch event properties, eliminates need for a plugin
...
Fixes gh-3104
Closes gh-3108
See https://github.com/aarongloege/jquery.touchHooks
Other properties are already present thanks to mouse events.
squash! Add targetTouches
2016-05-09 12:23:51 -04:00
Richard Gibson
de71e9755f
Deferred: Make jQuery.when synchronous when possible
...
Closes gh-3102
Fixes gh-3100
Closes gh-3105
2016-05-09 12:14:22 -04:00
Richard Gibson
e8825a529b
Event: Cover invalid delegation selector edge cases
...
Ref 7fd36ea145
2016-05-06 22:12:53 -04:00
Felipe Sateler
7fd36ea145
Event: Evaluate delegate selectors at add time
...
This ensures that invalid selectors throw right away.
Fixes gh-3071
Closes gh-3097
2016-05-06 22:12:20 -04:00
Dave Methvin
931f45fc38
Event: Remove pageX/pageY fill for event object
...
Fixes gh-3092
CLoses gh-3106
IE8 was the last major browser missing these.
2016-05-06 15:32:12 -04:00
Jason Bedard
e61fccb9d7
Event: Remove fixHooks, propHooks; switch to ES5 getter with addProp
...
Fixes gh-3103
Fixes gh-1746
Closes gh-2860
- Removes the copy loop in jQuery.event.fix
- Avoids accessing properties such as client/offset/page/screen X/Y
which may cause style recalc or layouts
- Simplifies adding property hooks to event object
2016-05-04 15:57:25 -04:00
Richard Gibson
356a3bccb0
Deferred: Separate the two paths in jQuery.when
...
Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.
Fixes gh-3029
Closes gh-3059
2016-05-02 12:30:31 -04:00
Ralin Chimev
0bd98b1b13
Ajax: Remove unnecessary use of jQuery.trim
...
The subsequent .match already ignores leading/trailing space.
Ref gh-3003
Closes gh-3095
2016-04-29 16:27:56 -04:00
Oleg Gaidarenko
d6e99d9b5e
Revert "Effects: Remove additional parameters of easings"
...
This reverts commit b7a7dea95f
.
Fixes #3064
2016-04-27 23:21:56 +03:00
Richard Gibson
7f1e59343b
Deferred: Provide explicit undefined context for jQuery.when raw casts
...
Fixes gh-3082
Closes gh-3084
2016-04-27 15:33:12 -04:00
Damian Senn
9f268caaf4
Event: Make event dispatch optimizable by JavaScript engines
...
Closes gh-2834
- Do not assign to function parameters
- Do not pass arguments object to other functions
2016-04-27 09:13:16 -04:00
Alexander K
4f270427d2
Serialize: .param - don't use ajaxSettings.traditional
...
Ref gh-3023
Closes gh-3030
2016-04-27 09:05:30 -04:00
Michał Gołębiowski
3b356cfde4
Build: Strip the strict-mode related comment in exports/global.js
...
The comment (& the JSHint pragma) doesn't make sense in the context of the
full built file.
Closes gh-3078
2016-04-26 22:50:22 +02:00
Michał Gołębiowski
ff1a0822f7
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.
Fixes gh-3041
Refs gh-1764
Refs gh-2401
Refs 90d828bad0
2016-04-26 21:19:54 +02:00
Michał Gołębiowski
305f193aa5
Build: Put all AMD modules in "src/" in strict mode
...
Fixes gh-3073
2016-04-25 20:25:08 +02:00
Richard Gibson
cf1497a58c
Build: A more modest block-level function proposal
...
This reverts commit fa610da684
.
2016-04-23 22:14:25 -04:00
Richard Gibson
3befe5911a
Offset: Resolve strict mode ClientRect "no setter" exception
2016-04-23 00:31:28 -04:00
Richard Gibson
76084372c2
Deferred: Remove default callback context
...
Employs strict mode to simplify Deferred callback context handling.
Fixes gh-3060
Closes gh-3061
2016-04-23 00:30:48 -04:00
Richard Gibson
755e7ccf01
CSS: Toggle detached elements as visible unless they have display: none
...
Fixes gh-2863
Closes gh-3037
2016-04-11 13:21:11 -04:00
Richard Gibson
91850ecbbe
Serialize: Reduce size
...
Ref 9fdbdd393a
2016-04-05 10:54:37 -04:00
Joe Trumbull
9fdbdd393a
Serialize: Treat literal and function-returned null/undefined the same
...
Fixes gh-3005
Closes gh-3007
2016-04-05 10:38:56 -04:00
Oleg Gaidarenko
5d20a3c3f1
Ajax: execute jQuery#load callback with correct context
...
Thanks @blq (Fredrik Blomqvist)
Fixes gh-3035
Close gh-3039
2016-04-04 16:22:35 -04:00
Richard Gibson
e0d3bfa770
Core: Simplify isPlainObject
...
Fixes gh-2986
Close gh-2998
2016-04-04 12:02:13 -04:00
Timmy Willison
10fc59007d
Core: set the base href of the context in parseHTML
...
Fixes gh-2965
Close gh-3022
2016-04-04 11:30:27 -04:00
Timmy Willison
5cbb234dd3
Core: implement ready without Deferred
...
- Make jQuery.ready promise-compatible
- Gives up sync guarantee for post-ready callbacks
Fixes gh-1778
Fixes gh-1823
Close gh-2891
2016-04-04 11:26:22 -04:00
Michał Gołębiowski
6072d150d6
Docs: Update support comments to follow the new syntax
...
The changes follow the spec proposed in:
https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
2016-03-30 23:45:17 +02:00
Michał Gołębiowski
693f1b537b
Docs: Update support comments related to IE
...
All support comments were checked for Edge applicability.
2016-03-30 11:21:36 +02:00
Michał Gołębiowski
622db29d9c
Docs:Tests: Remove legacy code & add support comments where needed
...
This commits backports some changes done in the patch to the then-existing
compat branch that removed support for old browsers and added some support
comments.
Refs 90d7cc1d8b
2016-03-30 11:21:36 +02:00
Oleg Gaidarenko
44cb97e0cf
Support: improve support properties computation
...
* Remove div from the memory if it is not needed anymore
* Make `computeStyleTests` method a singleton
Fixes gh-3018
Closes gh-3021
2016-03-28 19:24:31 +03:00
Timmy Willison
7052698191
Attributes: strip/collapse whitespace for set values on selects
...
Fixes gh-2978
Close gh-3002
2016-03-17 12:24:51 -04:00
Richard Gibson
0c1f72667d
Core: Restore 1.x isPlainObject constructor checks
...
- Guard isPlainObject against inherited scalar constructors
Fixes gh-2982
Close gh-2985
2016-03-14 11:45:07 -04:00
Timmy Willison
4a098f4883
Build: combine intro and outro
...
Fixes gh-2975
Close gh-2976
2016-03-09 11:42:42 -05:00
Michał Gołębiowski
9b086888b8
Docs:Tests: Remove obsolete code from tests, update support comments
...
Support comments that were lacking the final IE/Edge version that exhibits
the bug were checked & updated. Links to the Chromium bug tracker were updated.
Code in tests related to unsupported browsers (like Android 2.3 in non-basic
tests) has been removed.
Fixes gh-2868
Closes gh-2949
2016-03-08 23:26:46 +01:00
Timmy Willison
b43a3685b6
Attributes: remove redundant parent check
2016-03-07 11:30:06 -05:00
Timmy Willison
0402963845
Selector: filters -> pseudos
...
Fixes gh-2073
Close gh-2969
2016-03-07 11:14:53 -05:00
Timmy Willison
00575d4d8c
Core: restore enumeration behavior in isPlainObject
...
Fixes gh-2968
Close gh-2970
2016-03-07 11:12:47 -05:00
Michał Gołębiowski
93a8fa6bfc
Core: Deprecate jQuery.parseJSON
...
Fixes gh-2800
Closes gh-2948
2016-03-02 13:12:35 +01:00
Michał Gołębiowski
615d92517b
Attributes: remove the lower-casing logic for attribute names
...
jQuery used to lower-case the attribute names passed to the .attr setter
to workaround an old IE issue. This is no longer in jQuery 3.0 and
removing it may even "accidentally" make this API sort-of work on SVGs
(see gh-2910) so why not.
Manual lowercasing had to be added to the place where the proper
attrHook is retrieved so that it works regardless of the casing of the
provided name. A regular `toLowerCase()` is enough there as those few
attributes don't contain any non-ASCII characters.
Fixes gh-2914
Closes gh-2916
2016-02-17 02:30:22 +01:00
Timmy Willison
5943f1d7ff
Build: use hard-coded path to sizzle in selector-sizzle
...
Fixes gh-2898
2016-02-10 13:47:25 -08:00
Oleg Gaidarenko
49833f7795
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:24:22 +03:00
Michał Gołębiowski
9cb89bf91d
Attributes: Add a support comment & fix a link @ tabIndex hook
...
Ref gh-2664
2016-02-03 11:49:19 +01:00
Timmy Willison
25068bf2c6
Selector: add jQuery.escapeSelector
...
Fixes gh-1761
Close gh-2878
2016-01-28 17:25:41 -05:00
Todor Prikumov
35c314827d
CSS: Make sure elem.ownerDocument.defaultView is not null
...
Fixes gh-2866
Close gh-2867
2016-01-27 11:35:51 -05:00
Bernhard M. Wiedemann
1de8346729
Docs: use https where possible
...
Close gh-2875
2016-01-27 10:52:43 -05:00
Steve Mao
7103d8ef47
Core: Improve isNumeric logic and test coverage
...
Also add back accidentally deleted comments about the implementation.
Fixes gh-2780
Ref gh-2663
Ref gh-2781
Closes gh-2827
2016-01-24 19:07:09 -05:00
Timmy Willison
e04e246552
Effects: remove width/height exception for oldIE
...
Fixes gh-2488
Close gh-2849
2016-01-21 11:28:55 -05:00
Timmy Willison
a6fc0b1651
CSS: isHidden -> isHiddenWithinTree
...
Fixes gh-2404
Close gh-2855
2016-01-21 11:27:39 -05:00
Timmy Willison
4d3050b3d8
Traversing: restore jQuery push behavior in .find
...
Fixes gh-2370
Close gh-2848
2016-01-20 13:23:01 -05:00
Timmy Willison
250fd800a1
Ajax: add serialize to AMD dependencies
...
Fixes gh-2842
2016-01-19 12:37:41 -05:00
Devin Wilson
17f0e26ad9
Event: Fix chaining .on() with null handlers
...
Fixes gh-2846
2016-01-19 12:27:58 -05:00
Timmy Willison
780cac802b
Attributes: fix setting selected on an option in IE<=11
...
Fixes gh-2732
Close gh-2840
2016-01-19 11:36:47 -05:00
Richard Gibson
fe05cf37ff
CSS: Stop Firefox from treating disconnected elements as cascade-hidden
...
Fixes gh-2833
Ref dba93f79c4
Close gh-2835
2016-01-14 17:53:39 -05:00
Richard Gibson
dba93f79c4
CSS: Restore cascade-override behavior in .show
...
Fixes gh-2654
Fixes gh-2308
Close gh-2810
Ref 86419b10bf
2016-01-13 16:05:09 -05:00
Richard Gibson
a268f5225c
Traversing: Never let .closest() match positional selectors
...
Fixes gh-2796
Close gh-2818
2016-01-13 13:37:11 -05:00
Martijn W. van der Lee
0e2f8f9eff
Traversing: .not/.filter consistency with non-elements
...
Fixes gh-2808
Close gh-2809
2016-01-13 13:33:01 -05:00
Jon Dufresne
b0b280cd61
Docs: Updated links to https where they are supported.
...
Close gh-2746
2016-01-13 13:26:10 -05:00
Josh Soref
aae44111e2
Docs: Fix various spelling errors
...
Closes gh-2761
2016-01-13 13:11:11 -05:00
Dave Methvin
36a7cf9b1e
Deferred: Warn on exceptions that are likely programming errors
...
Fixes gh-2736
Closes gh-2737
2016-01-13 12:39:58 -05:00
Dave Methvin
bdf1b8f317
Deferred: Remove undocumented progress notifications in $.when
...
Fixes gh-2710
Closes gh-2816
2016-01-13 12:21:17 -05:00
Leonardo Braga
fb9472c7fb
Manipulation: Bring tagname regexes up to spec
...
Fixes gh-2005
Closes gh-2634
2016-01-07 16:48:49 -05:00
Jun Sun
df822caff0
CSS: Add animation-iteration-count to cssNumber, fix tests
...
Fixes gh-2792
Closes gh-2793
2016-01-07 21:46:22 +01:00
Timmy Willison
a4d16a26ab
Revert "Attributes: Remove undocumented .toggleClass( boolean ) signature"
...
This reverts commit 53f798cf4d
.
- Turns out this is documented, even if not fully. Need to deprecate before removal.
2016-01-07 14:06:41 -05:00
Jae Sung Park
1823a71566
Event: Remove duplicated word text on comment
...
Closes #2751
2015-12-03 08:53:22 -05:00
Timmy Willison
fbf829b724
Attributes: exclusively lowercase A-Z in attribute names
...
Fixes gh-2730
Close gh-2749
2015-12-02 10:39:02 -05:00
Oleg Gaidarenko
6680c1b29e
Core: do not expose second argument of the jQuery.globalEval
...
Closes jquery/api.jquery.com#831
Closes gh-2718
2015-12-02 17:09:01 +03:00
Dave Methvin
e077ffb083
Ajax: Preserve URL hash on requests
...
Fixes gh-1732
Closes gh-2721
2015-11-30 19:55:50 -05:00
Richard Gibson
eaa3e9f0cf
Ajax: Golf away 21 bytes
...
Close gh-2699
2015-11-19 16:04:19 -05:00
Timmy Willison
78b9eac119
Deferred: syncronize single and multiple target handling in $.when
...
Fixes gh-2546
Fixes gh-2018
Close gh-2707
2015-11-13 11:16:26 -05:00
Timmy Willison
88046440da
Selector: pass jQuery unit tests with selector-native
...
- Ignore certain tests that obviously are not supported
- Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions
Fixes gh-1742
Fixes gh-2048
Close gh-2703
2015-11-11 10:10:10 -05:00
Timmy Willison
ab06be561e
Effects: fix loading showHide in AMD mode
2015-11-10 12:44:35 -05:00
Dave Methvin
2937019060
Offset: offsetLeft/Top on empty set returns undefined
...
Fixes gh-2319
Closes gh-2702
Ref gh-2701
2015-11-10 10:01:45 -05:00
Dave Methvin
97d79ecf6b
Dimensions: Empty sets should return undefined
...
Ref gh-2319
Closes gh-2701
2015-11-10 09:59:48 -05:00
Timmy Willison
75b3cdd509
Dimensions: properly manipulate non-px values
...
Fixes gh-1712
Close gh-2695
2015-11-09 17:38:00 -05:00
Timmy Willison
22449eb968
Manipulation: execute scripts from iframe in the iframe's context
...
Fixes gh-1757
Close gh-2696
2015-11-09 14:14:30 -05:00
Dave Methvin
7d44d7f9e7
Dimensions: outerWidth/Height include scrollbar
...
Fixes gh-1729
Closes gh-2694
2015-11-07 15:13:31 -05:00
Dave Methvin
c9935b6d2d
Event: Separate trigger/simulate into its own module
...
Fixes gh-1864
Closes gh-2692
This also pulls the focusin/out special event into its own module, since that
depends on simulate(). NB: The ajax module triggers events pretty heavily.
2015-11-06 09:36:48 -05:00
Timmy Willison
79fc806e85
Attributes: return empty array for select-multiple with no values
...
Fixes gh-2562
Close gh-2689
2015-11-05 17:41:49 -05:00
Dave Methvin
769446c697
Ajax: Don't throw exceptions on binary data response
...
Fixes gh-2498
Closes gh-2682
The added unit test shows how this could be used to support an
ArrayBuffer return, but $.ajax does not support it natively.
The goal with this change was to avoid the exception.
2015-11-04 12:47:16 -05:00
Timmy Willison
76e9a95dbe
Ajax: trigger error callback on native abort
...
- IE9 does not have onabort. Use onreadystatechange instead.
Fixes gh-2079
Close gh-2684
2015-11-03 12:34:04 -05:00
Dave Methvin
70605c8e56
Ajax: Only form-encode requests with a body
...
Fixes #2658
Closes #2671
2015-11-02 13:14:46 -05:00
Timmy Willison
dabd5ba96c
Core: use interactive to evaluate dom ready, barring IE9-10
...
Fixes gh-2100
2015-10-29 10:21:50 -04:00
Timmy Willison
47ccf3daad
Attributes: do not set properties to false when removing booleans
...
Fixes gh-1759
2015-10-21 16:23:44 -04:00
Timmy Willison
15ac848868
Core: make isNumeric limited to strings and numbers
...
Fixes gh-2662
2015-10-21 16:22:22 -04:00
Richard Gibson
487d5ca913
CSS: Correct misrepresentation of "auto" horizontal margins as 0
...
Fixes gh-2237
Closes gh-2276
(cherry picked from commit 214e1634ab
)
Conflicts:
src/css.js
src/css/support.js
test/unit/support.js
2015-10-18 16:58:38 -04:00
Joelle Fleurantin
c752a5030b
Attributes: fix tabIndex on <img> in IE11
...
Fixes gh-2647
Closes gh-2664
2015-10-18 16:36:52 -04:00
Timmy Willison
3689963909
CSS: use isFinite in place of redundant isNumeric
2015-10-18 15:12:42 -04:00
Timmy Willison
32cfc38a9c
CSS: fix AMD mode for the new showHide module
2015-10-18 15:10:11 -04:00
Dave Methvin
c82a6685bb
Event: Fix delegated radio events when arrow keys are used
...
Fixes gh-2343, gh-2410
Close gh-2617
2015-10-18 13:06:37 -04:00
Thomas Tortorini
5db1e05309
Attributes: removeClass() -> attr("class", "")
...
- Classes simpliciation
Close gh-2465
2015-10-18 12:46:34 -04:00
Dave Methvin
4bf1a09522
Attributes: Use simpler boolean check vs a function call
...
Ref gh-2491
2015-10-18 12:39:38 -04:00
Dave Methvin
53f798cf4d
Attributes: Remove undocumented .toggleClass( boolean ) signature
...
Fixes gh-2491
Close gh-2618
2015-10-18 12:38:59 -04:00
Dave Methvin
67d7a2eefe
CSS: Make show/hide/toggle methods a module
...
Unit test changes some uses of .show() and .hide() to .css( "display", ... ),
there was already an implicit assumption in several of the existing tests.
Fixes gh-2193
Close gh-2648
2015-10-18 12:30:00 -04:00
Timmy Willison
e271f665dd
Deprecated: fix amd mode for the deprecated module
2015-10-18 11:02:16 -04:00
Liza Ramo
0703fd52ef
Core: make isNumeric test work on Symbol
...
Ref #2645
Closes #2657
2015-10-17 16:50:05 -04:00
Christian Grete
8a734344f2
Core: Support Symbol wrapper objects in jQuery.type
...
In ECMAScript 2015 (ES6), the native typeof operator returns "symbol"
for Symbol primitives. As it is possible to wrap symbols using the
Object constructor, symbols can be objects as well as any other
primitive type in JavaScript and should be determined by jQuery.type.
Closes gh-2627
2015-10-13 01:18:20 +03:00
Oleg Gaidarenko
239169bb2e
Ajax: improve content-type detection
...
Fixes gh-2584
Closes gh-2643
2015-10-12 22:38:15 +03:00
Oleg Gaidarenko
cb087ce41d
Ajax: correct indentation
...
As noted by @arthurvr
Follow-up for b078a62013
2015-10-12 20:35:29 +03:00
Gary Ye
03eaadb131
Tests:Docs: Fix various typos
...
* Changes "baar" to "bar" when used with "foo" in readme
and comments of js files
* mousenter -> mouseenter
Thanks @garysye, @KimTaehee
Closes gh-2613
Closes gh-2601
2015-10-12 18:08:13 +03:00
Dave Methvin
ee0854f85b
Event: Move .bind() and .delegate() to deprecated
...
Fixes gh-2288
Closes gh-2624
2015-10-12 17:32:08 +03:00
Oleg Gaidarenko
b078a62013
Ajax: Mitigate possible XSS vulnerability
...
Proposed by @jaubourg
Fixes gh-2432
Closes gh-2588
2015-10-12 17:05:18 +03:00
Anthony Ryan
99e8ff1baa
Manipulation: Don't provide the parser with sloppy table markup
...
While we can reply on parsers that were designed to cope with
malformed syntax to understand what we mean, we shouldn't
intentionally provide bad markup, not all parsers will accept
it.
"Be conservative in what you do, be liberal in what you accept
from others."
Reverts 0ea342a6a6
Refs gh-2031
Refs gh-2002
Fixes gh-2493
Closes gh-2499
2015-09-14 22:01:04 +02:00
Jason Bedard
b5f7c9e2d5
Data: Combine register and cache methods
...
Closes gh-2553
2015-09-14 21:53:27 +02:00
Michał Gołębiowski
ce3b4a6242
Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 support
...
Drop non-critical workarounds for Android 2.3.
Fixes gh-2483
Fixes gh-2505
Closes gh-2581
2015-09-14 21:26:48 +02:00
Jason Bedard
0e982433eb
Data: avoid using delete on DOM nodes
...
Closes gh-2479
2015-09-08 20:22:54 +02:00
Sean Henderson
d4def22e4c
Manipulation: Switch rnoInnerhtml to a version more performant in IE
...
IE versions greater than 9 do not handle the old regular expression well
with large html content. This is due to the use of a non-capturing group
after a very common html character (<).
Test suite: http://jsfiddle.net/Lwa0t5rp/3/
Microsoft bug: https://connect.microsoft.com/IE/feedback/details/1736512/
Fixes gh-2563
Closes gh-2574
2015-09-08 19:31:57 +02:00
Michał Gołębiowski
f9ef427d35
Traversing: Don't expose jQuery.dir & jQuery.sibling
...
jQuery.dir & jQuery.sibling are undocumented internal APIs; they shouldn't
be exposed.
Fixes gh-2512
Closes gh-2525
2015-09-08 17:32:07 +02:00
Thomas Tortorini
3dd3d1357d
Effects: Finish should call progress
...
Fixes gh-2283
Closes gh-2292
2015-09-08 02:40:54 +02:00
Yongwoo Jeon
98cee73244
Core: Remove unnecessary parameter to jQuery#constructor
...
Closes gh-2441
2015-09-08 02:30:26 +02:00
Jason Bedard
f5bf9bc488
Data: do not create data cache when fetching single property
...
Closes gh-2554
2015-09-08 01:55:51 +02:00
Oleg Gaidarenko
5adf04a73c
Build: put back "lint" command to the "dev" list
...
Also fix lint error in `data` module.
It seems this command was removed from the list during merge
2015-09-08 02:33:43 +03:00
Jason Bedard
224271982e
Data: Don't expose jQuery.acceptData
...
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.
Fixes gh-2555
2015-09-08 01:00:31 +02:00
Michał Gołębiowski
14c0fe4432
Serialize: Fix object detection
...
jQuery.type doesn't just return "null" for null but also e.g. "array"
for arrays instead of object so it's not really a typeof analogue.
My suggestion was stupid. Sorry.
Refs 3d7ce0a65f
2015-09-07 23:22:56 +02:00
Daniel Nill
3d7ce0a65f
Serialize: Handle arrays with null values
...
Closes gh-2436
2015-09-07 22:45:23 +02:00
Thomas Tortorini
b7a7dea95f
Effects: Remove additional parameters of easings
...
Fixes gh-2367
Closes gh-2376
2015-09-07 22:07:32 +02:00
Oleg Gaidarenko
c9cf250daa
Ajax: do not quote "throws" option - use dot notation instead
...
Fixes gh-2571
Closes gh-2542
2015-09-07 20:03:51 +03:00
Oleg Gaidarenko
10fdad742a
Build: Update jscs and lint files
...
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Richard Gibson
9d820fbde6
Event: Only check elements for delegation matches
...
Closes gh-2529
Ref trac-13208
(cherry picked from commit fc2ba2e136
)
2015-08-10 10:26:13 -04:00
Michał Gołębiowski
9adfad1986
Core: Don't expose jQuery.access
...
jQuery.access was never documented, there is no need to keep it exposed.
Fixes gh-2513
Closes gh-2524
2015-08-03 19:33:38 +02:00
Michał Gołębiowski
669cb16d76
Build: Add a comment explaining why the es3 option is needed
...
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.
Closes gh-2520
2015-08-03 18:51:18 +02:00
Jason Bedard
5fe76c663f
Data: remove user data in cleanData
...
Fixes gh-2503
Closes gh-2480
2015-07-28 14:22:03 +02:00
Michał Gołębiowski
2792845534
Event: Update support comments for mouseenter/mouseleave implementation
...
Custom mouseenter/mouseleave implementation was needed because of:
1. Safari 6 not implementing mouseenter/mouseleave at all.
2. Chrome sending mouseenter too often.
The second issue has been fixed in Chrome but exists now in Safari 7
(it's fixed in Safari 8) so we have to keep it for now, unfortunately.
2015-07-27 22:29:38 +02:00
Michał Gołębiowski
93bee4701d
Core: Adjust comments & tests after dropping Safari 6 support
...
Support comments that mentioned only Safari < 7 were checked & updated
to account for bugs existing in newer versions as well; Safari 6 support
test results were removed.
Refs gh-2482
2015-07-27 22:14:48 +02:00
Thomas Tortorini
bf48c21d22
Core: .each/.map should accept an undefined/null value
...
Fixes gh-2267
Closes gh-2363
2015-07-27 19:57:34 +02:00
Michał Gołębiowski
d242753726
Core: Add a support comment for Safari 8
...
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337
Thanks @phistuck!
Refs cfe468f29c
2015-07-20 20:22:34 +02:00
Michał Gołębiowski
1c59b308d2
Build: Acknowledge Android 2.3 is not ES5-compatible
...
Android 2.3 chokes on unquoted reserved words being used as property names
which was making Deferred tests not run.
Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser
and enable the "es3" option in JSHint config.
Fixes gh-2478
Closes gh-2481
2015-07-20 18:37:26 +02:00
Marek Lewandowski
bf591fb597
Selector: Define jQuery.uniqueSort in selector-native too
...
Fixes gh-2466
Closes gh-2467
2015-07-14 09:18:57 -04:00
Oleg Gaidarenko
a2ae215d99
Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
...
Fixes gh-2323
Closes gh-2464
2015-07-13 01:34:09 +03:00
Michał Gołębiowski
b60b26e184
CSS: Make .css("width") & .css("height") return fractional values
...
Fixes gh-1724
Closes gh-2439
2015-07-07 18:09:45 +02:00
Timmy Willison
84ccf2606c
Deferred: add .catch handler
...
Fixes gh-2102
2015-07-06 10:47:30 -04:00
Michał Gołębiowski
8e4aac8cb0
CSS: Improve a comment explaining IE11 fullscreen bug
2015-07-01 23:20:32 +02:00
Corey Frang
b3b2d6c3dd
Effects: Adding unit tests for jQuery.Animation
...
Closes gh-2326
2015-06-26 20:06:03 -04:00
Corey Frang
cdaed15c7e
Effects: Add tests for jQuery.Tween
2015-06-26 20:05:25 -04:00
Thomas Tortorini
3a0d582cf6
CSS: make the getStyles function more readable
...
The new version is not only simpler to read but also smaller
by 6 bytes gzipped.
Closes gh-2393
2015-06-25 02:48:35 +02:00
Gilad Peleg
5153b5334e
Core: organize prop & attr code to be similar
...
Closes gh-2384
2015-06-23 16:52:00 +03:00
Martin Naumann
90d828bad0
CSS: Work around an IE11 fullscreen dimensions bug
...
Fixes gh-1764
Closes gh-2401
2015-06-23 00:53:00 +02:00
Michał Gołębiowski
842958e7ae
Core: Switch from modules to just window.setTimeout etc.
...
Using modules for window.setTimeout etc. made those functions cached and
disabled Sinon mocking, making effects tests fail. Just writing
window.setTimeout directly is smaller anyway.
2015-06-17 12:59:01 +02:00
Michał Gołębiowski
219c749493
Core: Use window.setTimeout & friends instead of global equivalents
...
Fixes gh-2177
2015-06-17 12:29:49 +02:00
Timmy Willison
0e4477c676
Offset: return before getBoundingClientRect to avoid error in IE8-11
2015-06-16 11:21:58 -04:00
Timmy Willison
40dcc76764
Offset: return zeros for disconnected/hidden elements
...
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:11 -04:00
Timmy Willison
578dcee96a
Revert "Offset: allow offset setter to throw for disconnected elements"
...
This reverts commit 0d11c1182f
.
2015-06-16 10:54:52 -04:00
Michał Gołębiowski
349edbd6c5
Manipulation: Remove an internal argument to the remove method
...
Fixes gh-2301
Closes gh-2366
2015-06-14 00:07:31 +02:00
Michał Gołębiowski
04a29696e5
Event: Remove an internal argument to the on method
...
Refs gh-2301
2015-06-14 00:06:51 +02:00
Michał Gołębiowski
bb026fc12c
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"
}
Fixes gh-1693
2015-06-13 23:14:36 +02:00
Oleg Gaidarenko
3655c4e190
Event: remove preDispatch hook & simplify "simulate" signature
...
Closes gh-2358
2015-06-05 22:14:42 +03:00
Michał Gołębiowski
0019a463bd
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.
(cherry-picked from e847574fc7
)
Refs 02a9d9f94b
2015-06-01 19:59:23 +02:00
Michał Gołębiowski
38a669735d
Ajax: Remove remnants of the load event alias handling
...
Refs 0705be4750
Refs gh-2287
Closes gh-2362
2015-06-01 19:05:54 +02:00
Michał Gołębiowski
d471842b3e
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.
Fixes gh-2015
Closes gh-2298
2015-06-01 14:05:05 +02:00
Oleg Gaidarenko
6df669f0fb
Event: remove outdated originalEvent hack
...
Closes gh-2335
Ref 7475d5debe
2015-05-29 20:32:59 +03:00
Gabriel Schulhof
7475d5debe
Event: Remove fake originalEvent from jQuery.Event.simulate
...
Fixes gh-2300
Closes gh-2303
2015-05-29 19:56:06 +03:00
Oleg Gaidarenko
0705be4750
Event: remove deprecated event aliases
...
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:43:34 +03:00
Oleg Gaidarenko
c074006a69
Event: provide verbose comment for focus(in | out) & rename support prop
...
Closes gh-2312
2015-05-19 13:43:34 +03:00
Richard McDaniel
2d715940b9
Offset: account for scroll when calculating position
...
Fixes gh-1708
Close gh-1714
2015-05-12 10:34:57 -04:00
Timmy Willison
c252c5fac2
Core: remove custom ready event
...
Fixes gh-2264
Close gh-2265
2015-05-12 10:26:21 -04:00
Timmy Willison
20aaed367f
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
2015-05-12 10:13:46 -04:00
Timmy Willison
56bb677725
Data: remove the expando when there's no more data
...
Fixes gh-1760
Close gh-2271
2015-05-12 10:09:40 -04:00
Timmy Willison
764dc949d0
Data: remove some unused code
2015-05-12 10:09:40 -04:00
Timmy Willison
79bcb29132
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
2015-05-12 09:14:16 -04:00
Michał Gołębiowski
7855a1a7d8
CSS: Collapse a double if statement into one
...
Saves 3 bytes gzipped
Closes gh-2296
2015-05-12 00:05:35 +02:00
Richard Gibson
86419b10bf
CSS: Ignore the CSS cascade in show()/hide()/etc.
...
Fixes gh-1767
Fixes gh-2071
Closes gh-2180
2015-05-11 13:00:49 -04:00
Timmy Willison
62d5579578
Manipulation: privatize internal domManip() function
...
Fixes gh-2225
2015-05-05 11:53:26 -07:00
Timmy Willison
a74320fca8
Manipulation: privatize buildFragment() function
...
Fixes gh-2224
2015-05-05 11:44:55 -07:00
Timmy Willison
5f2ea40258
Effects: set default easing using jQuery.easing._default
...
Fixes gh-2219
Close gh-2218
2015-05-05 10:24:20 -07:00
Mu Haibao
436f0aee0a
Core: remove isArraylike check for nodes
...
Fixes gh-2238
Close gh-2243
2015-05-05 10:21:10 -07:00
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
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
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
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
Richard Gibson
555a50d340
Deferred: Backwards-compatible standards interoperability
...
Fixes gh-1722
Closes gh-1996
2015-03-20 02:00:17 -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
Oleg Gaidarenko
9d1b989f20
Ajax: remove deprecated extensions from ajax promise
...
Fixes gh-2084
Closes gh-2092
2015-02-17 09:58:45 +03:00
Oleg Gaidarenko
97ef1f2612
Ajax: replace "jqXHR.complete" callback with "always"
...
Since it was deprecated since 1.8.
Also add additional comments which explains tricky
behaviour of "always" callback
Closes gh-2033
2015-02-15 02:05:39 +03:00
Oleg Gaidarenko
4ef120d3f2
Ajax: make jQuery#load "type" field explicit
...
* Move "evalScript.php" file to appropriate place
* Make jQuery#load "type" field explicit and add test for it
Ref trac-11264
2015-02-15 02:01:59 +03:00
Oleg Gaidarenko
0ac28ed293
Ajax: simplify one ajax call and add explanatory comment
...
* Remove "async = true" from script transport since it was needed
for FF < 4 and old Opera which we do not support anymore
* Add comment to "evalUrl" method on why "type" field should be explicit
2015-02-15 02:00:38 +03:00
Oleg Gaidarenko
e984d1c79c
Manipulation: don't auto-insert tbody
...
Fixes gh-1835
Closes gh-2021
2015-02-11 16:49:59 +03:00
Oleg Gaidarenko
0ea342a6a6
Manipulation: simplify html wrappers
...
Take advantage of html serialization for html wrappers - saves 26 bytes
Plus add additional test for "col" element
Closes gh-2031
Fixes gh-2002
2015-02-10 23:44:01 +03:00
Michał Gołębiowski
45ec73f556
CSS: save 20 bytes in css/support
...
Refs gh-1842
2015-02-05 02:48:32 +01:00