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
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
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
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
Michał Gołębiowski
93a8fa6bfc
Core: Deprecate jQuery.parseJSON
...
Fixes gh-2800
Closes gh-2948
2016-03-02 13:12:35 +01: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
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
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
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
Oleg Gaidarenko
10fdad742a
Build: Update jscs and lint files
...
Fixes gh-2056
2015-09-07 20:03:50 +03: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
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
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
Michał Gołębiowski
f6de5a90dd
Core: Align branches: remove an unused variable, add comments
...
Closes gh-2233
2015-04-27 20:19:05 +02: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
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
Richard Gibson
53aa87f3bf
Core: Standardize indexOf comparisons
...
not present: `< 0`
present: `> -1`
at index: `=== N`
Closes gh-1984
2015-01-10 23:47:01 -05:00
Michał Gołębiowski
76df9e4e38
Build: Don't assume the browser environment; smoke test on Node w/ jsdom
...
Fixes gh-1950
Closes gh-1949
2014-12-26 13:26:46 +01:00
Shivaji Varma
5a0867d1e9
Ajax: simplify jQuery.parseXML method
...
-2 bytes to the gzipped size and code looks a bit nicer
This wasn't landed to the compat branch though, since size would increase
with this cherry-pick
Closes gh-1856
2014-12-25 08:24:37 +03:00
Oleg Gaidarenko
4e7f34f629
Ajax: remove event dependency from the ajax module
...
Closes gh-1695
2014-10-14 21:24:05 +04:00
Timmy Willison
c869a1ef8a
Build: update grunt-jscs-checker and pass with the new rules
2014-07-17 10:25:59 -07:00
Dave Methvin
3a68c114e3
Ajax: .load() should trim its selector
...
Fixes #14773
2014-03-04 20:43:14 -05:00
jaubourg
01c360f963
Ajax: Protect against exceptions thrown synchronously by xhr.send
...
When xhr.send throws an exception synchronously, the onerror handler may have
been called already which, unchecked, makes the exception bubble up outside of
jQuery.ajax.
We now catch the exception pre-emptively and only rethrow if we know it hasn't
already been notified through the onerror handler.
Fixes #14683
2014-01-29 14:18:58 +01:00
Dave Methvin
b278d8174f
Revert "Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434."
...
This reverts commit 498e0e6c9b
.
We can't use the ActiveX XHR because it doesn't support events.
2013-12-15 22:02:51 -05:00
Dave Methvin
498e0e6c9b
Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434.
...
We can't feature detect ActiveX in IE11, but we can just call
it and catch whatever error occurs, then try normal XHR.
2013-11-14 15:27:37 -05:00
Dave Methvin
dce2edb3a6
ajax: Fix #14207 . file protocol returns status 0, see #8605 .
2013-11-13 20:53:04 -05:00
Richard Gibson
71b2ac524e
Fix #14492 : More correct jQuery.parseJSON. Close gh-1419.
...
(cherry picked from commit 60a6178131
)
Conflicts:
src/ajax/parseJSON.js
2013-11-12 00:13:08 -05:00
Richard Gibson
19c1b6109a
No ticket: Update support comment to match convention
2013-11-04 12:51:57 -05:00
Richard Gibson
705216dc46
No ticket: Small ajax/xhr size optimizations
2013-10-28 17:53:39 -04:00
Richard Gibson
f9d41ac641
Fix #14379 : AJAX requests on unload
2013-10-28 17:53:31 -04:00
Oleg
cb37994d76
No ticket: fix code style inconsistencies. Closes gh-1361
2013-09-13 01:04:29 +04:00
Timmy Willison
cd4a9cd7fa
All non-var modules should not indent in their AMD wrappers (just for prettier builds). No functionality changes.
2013-09-09 12:08:00 -04:00
Timmy Willison
99c123b159
Move parsing methods to their own files (separates manipulation dependency from core)
2013-09-08 21:05:07 -04:00
Michał Gołębiowski
1a25f21dc3
No ticket. Restore checking individual src/**/*.js files by jsHint.
2013-09-06 20:31:18 +02:00
Michał Gołębiowski
bbbdd94725
Fix #10814 . Make support tests lazy and broken out to components.
2013-09-06 03:38:22 +02:00
Timmy Willison
004c1fc5bb
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
2013-08-29 16:18:17 -04:00
Timmy Willison
cecb52ff5c
Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.
2013-08-15 20:38:48 -04:00
Timmy Willison
6318ae6ab9
AMD-ify jQuery sourcegit s! Woo! Fixes #14113 , #14163 .
2013-08-15 14:15:49 -04:00
jaubourg
1c77259d06
Removes unnecessary call to .off()
as noted by @dcherman.
2013-01-21 03:05:03 +01:00
jaubourg
1ad874f344
Further script transport cleanup, close gh-1123.
2013-01-20 18:10:07 -05:00
jaubourg
c373a499d3
Reduced script transport
2013-01-20 18:08:59 -05:00
jaubourg
62acda819f
Adds the abort on unload trick back in since IE9 still exhibits the bug
2013-01-07 10:34:14 -05:00
jaubourg
f6df0301c8
Fixes comments per @rwldrn. Makes sure failing requests from local protocol yields status 404, not 0.
2013-01-07 10:34:11 -05:00
jaubourg
17049c73bc
2.0: reduced xhr transport
2013-01-07 10:34:07 -05:00
Oleg
d41b983259
Fix #10417 . setTimeout w/o 2nd arg is jQuery.later! Close gh-1065.
2012-12-10 20:51:49 -05:00
Richard Gibson
a938d7b128
No ticket: compress ajax. Close gh-1041.
2012-11-25 13:07:46 -05:00