Commit Graph

3839 Commits

Author SHA1 Message Date
Sean Henderson
29266e00e9 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/

(cherry-picked from d4def22e4c)

Fixes gh-2563
Closes gh-2574
2015-09-08 19:35:06 +02:00
Michał Gołębiowski
8c851bfdb9 Traversing: Don't expose jQuery.dir & jQuery.sibling
jQuery.dir & jQuery.sibling are undocumented internal APIs; they shouldn't
be exposed.

(cherry-picked from f9ef427d35)

Fixes gh-2512
Closes gh-2525
2015-09-08 17:39:28 +02:00
Thomas Tortorini
f71e32d4b4 Effects: Finish should call progress
(cherry-picked from 3dd3d1357d)

Fixes gh-2283
Closes gh-2292
2015-09-08 02:42:47 +02:00
Yongwoo Jeon
dc76dca295 Core: Remove unnecessary parameter to jQuery#constructor
(cherry-picked from 98cee73244)

Closes gh-2441
2015-09-08 02:42:26 +02:00
Jason Bedard
bec2ba2312 Data: Don't expose jQuery.acceptData
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.

(cherry-picked from 224271982e)

Fixes gh-2555
2015-09-08 01:32:46 +02:00
Michał Gołębiowski
a9930565f1 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.

(cherry-picked from 14c0fe4432)

Refs 3d7ce0a65f
2015-09-08 00:33:09 +02:00
Daniel Nill
f0b86ec050 Serialize: Handle arrays with null values
(cherry-picked from 3d7ce0a65f)

Closes gh-2436
2015-09-07 23:00:47 +02:00
Thomas Tortorini
41a04e59df Effects: Remove additional parameters of easings
(cherry-picked from b7a7dea95f)

Fixes gh-2367
Closes gh-2376
2015-09-07 22:15:09 +02:00
Oleg Gaidarenko
c530661629 Ajax: do not quote "throws" option - use dot notation instead
Ref c9cf250daa
Fixes gh-2571
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59 Build: Update jscs and lint files
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Michał Gołębiowski
04ec688e80 Core: Support non-browser environments
Fixes gh-2133
Fixes gh-2501
Closes gh-2504
Refs gh-1950
Refs gh-1949
Refs gh-2397
Refs gh-1537
Refs gh-2504
Refs 842958e7ae
2015-08-16 22:29:42 +02:00
Michał Gołębiowski
9b04201ff2 Core:CSS: Attach test nodes to documentElement, not body
Attaching test divs to document.documentElement instead of document.body
used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests
on document ready, though so it could be aligned with master.

This makes jQuery Compat support tests work correctly even if jQuery is
included & used in head before body even exists - making it similar to
the master behavior.

Fixes gh-2502
2015-08-16 22:28:35 +02:00
Richard Gibson
e4c5f87851 Event: Reduce differences from master 2015-08-10 10:10:29 -04:00
Michał Gołębiowski
12230d39e1 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-04 18:38:13 +02:00
Michał Gołębiowski
b988c0e45d 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.

(cherry-picked from 669cb16d76)

Closes gh-2520
2015-08-03 18:55:36 +02:00
Michał Gołębiowski
d176001e6e 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.

(cherry-picked from 2792845534)
2015-07-27 22:30:19 +02:00
Michał Gołębiowski
5fce498e42 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.

(cherry-picked from 93bee4701d)

Refs gh-2482
2015-07-27 22:19:57 +02:00
Thomas Tortorini
15f48047bc Core: .each/.map should accept an undefined/null value
(cherry-picked from bf48c21d22)

Fixes gh-2267
Closes gh-2363
2015-07-27 20:02:54 +02:00
Michał Gołębiowski
9c373c3141 Core: Add a support comment for Safari 8
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337

Thanks @phistuck!

(cherry-picked from d242753726)

Refs cfe468f29c
2015-07-20 20:25:03 +02:00
Oleg Gaidarenko
3d850edb13 Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
Fixes gh-2323
Closes gh-2464
Ref a2ae215d99
2015-07-13 04:09:31 +03:00
Michał Gołębiowski
23212b34e6 CSS: Make .css("width") & .css("height") return fractional values
Fixes gh-1724
Closes gh-2454
Refs gh-2439
2015-07-07 18:14:04 +02:00
Timmy Willison
ef77f83db8 Deferred: add .catch handler
Fixes gh-2102
2015-07-06 17:08:42 -04:00
Michał Gołębiowski
5895340088 CSS: Improve a comment explaining IE11 fullscreen bug
(cherry-picked from 8e4aac8cb0)
2015-07-01 23:21:21 +02:00
Corey Frang
d07774ae06 Tests: Fix merge conflict
Introduced in 6b10f9d7e9 originally.

Had a rebase conflict that I fixed but forgot to ⌘-s. ☹
2015-06-26 20:30:56 -04:00
Corey Frang
0ff805772a Effects: Adding unit tests for jQuery.Animation
Closes gh-2340

(cherry picked from commit b3b2d6c3dd)

Conflicts:
	src/effects.js
2015-06-26 20:12:42 -04:00
Corey Frang
6b10f9d7e9 Effects: Add tests for jQuery.Tween
Conflicts:
	src/selector-native.js
	test/index.html
	test/unit/effects.js
2015-06-26 20:11:55 -04:00
Thomas Tortorini
bf282ea8e2 CSS: make the getStyles function more readable
(cherry-picked from 3a0d582cf6)

Closes gh-2393
2015-06-25 02:55:06 +02:00
Gilad Peleg
f2bcf87c25 Attributes: fix IE8 issues
Follow-up for d0388e9e80
2015-06-25 03:07:24 +03:00
Gilad Peleg
d0388e9e80 Core: organize prop & attr code to be similar
Ref 5153b5334e
Closes gh-2426
2015-06-23 17:44:25 +03:00
Martin Naumann
6df1bf9be8 CSS: Work around an IE11 fullscreen dimensions bug
(cherry-picked from 90d828bad0)

Fixes gh-1764
Closes gh-2401
2015-06-23 01:47:48 +02:00
Michał Gołębiowski
453738ab85 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
2015-06-23 00:33:51 +02:00
Timmy Willison
a0a5c0be2d Offset: add tests for hidden elements + scroll
- Also add comments to hidden/disconnected tests noting
  this is to ensure consistency between branches
2015-06-16 13:24:12 -04:00
Timmy Willison
3b1de11267 Offset: getBounding doesn't return width/height in IE8. Fixes test. 2015-06-16 12:49:22 -04:00
Timmy Willison
523de777f9 Offset: no need to check for ownerDocument 2015-06-16 12:23:43 -04:00
Timmy Willison
6df399073c Offset: revert to jQuery.contains for IE8's sake (compat only)
- getClientRects() throws on disconnected elements in IE8 only
2015-06-16 12:14:05 -04:00
Timmy Willison
25e8620da9 Offset: return before getBoundingClientRect to avoid error in IE8-11 2015-06-16 11:24:42 -04:00
Timmy Willison
63f19a95b9 Offset: return zeros for disconnected/hidden elements
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:51 -04:00
Timmy Willison
ee69e9c8b8 Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
2015-06-16 10:55:48 -04:00
Michał Gołębiowski
b819be3e2f Manipulation: Remove an internal argument to the remove method
(cherry-picked from 349edbd6c5)

Fixes gh-2301
Closes gh-2366
2015-06-14 00:34:05 +02:00
Michał Gołębiowski
473d2db9fd Event: Remove an internal argument to the on method
(cherry-picked from 04a29696e5)

Refs gh-2301
2015-06-14 00:24:50 +02:00
Michał Gołębiowski
2fa3bac7eb 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 bb026fc12c)

Fixes gh-1693
2015-06-13 23:31:27 +02:00
Michał Gołębiowski
a022da7056 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 1556c4661a)
2015-06-13 23:24:01 +02:00
Oleg Gaidarenko
ac23f91cbe Event: correct an unfinished comment 2015-06-05 22:23:59 +03:00
Oleg Gaidarenko
05e54ce798 Event: remove preDispatch hook & simplify "simulate" signature
Ref 3655c4e190
2015-06-05 22:21:26 +03:00
Michał Gołębiowski
e847574fc7 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 02a9d9f94b
2015-06-01 19:58:21 +02:00
Michał Gołębiowski
ceeaaeb45e Ajax: Remove remnants of the load event alias handling
(cherry-picked from 38a669735d)

Refs 0705be4750
Refs gh-2287
Closes gh-2362
2015-06-01 19:13:06 +02:00
Michał Gołębiowski
42ea746825 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 d471842b3e)

Fixes gh-2015
Closes gh-2298
2015-06-01 14:25:14 +02:00
Oleg Gaidarenko
37c3d08782 Event: improve originalEvent hack
Ref 6df669f0fb
Ref gh-2336
2015-05-29 20:33:08 +03:00
Michał Gołębiowski
bd699cb17b 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 61f812b7e7
2015-05-19 14:06:15 +02:00
Oleg Gaidarenko
ef30bdf4f1 Event: remove deprecated event aliases
(Cherry-picked from 0705be4750)
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:47:17 +03:00