Commit Graph

3887 Commits

Author SHA1 Message Date
Michał Gołębiowski
61f812b7e7 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
2015-05-18 22:26:00 +02:00
Richard McDaniel
0654711e0d Offset: account for scroll when calculating position
Fixes gh-1708
Close gh-1714
2015-05-12 10:36:45 -04:00
Timmy Willison
b35bea14a9 Core: remove custom ready event
Fixes gh-2264
Close gh-2265
2015-05-12 10:29:07 -04:00
Timmy Willison
b5b0d72774 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:24:42 -04:00
Timmy Willison
dd816dbac1 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 10:06:42 -04:00
Michał Gołębiowski
fe2a584ed6 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
2015-05-12 11:57:30 +02:00
Richard Gibson
9df8bd205a CSS: Ignore the CSS cascade in show()/hide()/etc.
Fixes gh-1767
Fixes gh-2071
Closes gh-2180

(cherry picked from commit 86419b10bf)

Conflicts:
	src/css.js
	src/css/defaultDisplay.js
	src/effects.js
	test/data/testsuite.css
	test/unit/css.js
	test/unit/effects.js
2015-05-11 13:01:13 -04:00
Timmy Willison
d18b645788 Build: append "+compat" to tag version and jQuery.fn.jquery
Fixes gh-2269
Close gh-2270
2015-05-07 10:31:30 -07:00
Timmy Willison
590eff6397 Manipulation: privatize internal domManip() function
Fixes gh-2225
2015-05-05 12:14:21 -07:00
Timmy Willison
63c1414a54 Manipulation: privatize buildFragment() function
Fixes gh-2224
2015-05-05 12:12:14 -07:00
Timmy Willison
b7f9e62642 Effects: set default easing using jQuery.easing._default
Fixes gh-2219
Close gh-2218
2015-05-05 10:26:02 -07:00
Mu Haibao
d6933917d2 Core: remove isArraylike check for nodes
Fixes gh-2238
Close gh-2243
2015-05-05 10:22:23 -07:00
Timmy Willison
dc49f62f22 Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 09:00:41 -07:00
Timmy Willison
a2386a8250 Offset: remove ownerDocument check in offset getter
Fixes gh-2115
2015-05-05 09:00:37 -07:00
Arthur Stolyar
d4dd548aca Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
2015-05-05 09:00:27 -07:00
Timmy Willison
d9d930f79e Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
2015-05-04 15:28:44 -07:00
Timmy Willison
c916aef84f Core: allow init to accept an alternate rootjQuery for migrate's sake
- This will be tested in migrate

Fixes gh-2101
2015-05-04 15:17:56 -07:00
Timmy Willison
cf16f860b0 Data: camelCasing should not ignore case
Fixes gh-2070
2015-05-04 10:49:52 -04:00
Timmy Willison
0204c3089e Data: always camelCase keys in .data()
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn

Fixes gh-2257
2015-05-04 10:41:44 -04:00
Timmy Willison
e185aa3f06 CSS: fix dependency order for amd 2015-05-04 10:41:44 -04:00
Timmy Willison
a254f22d7b Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-04 10:41:43 -04:00
Oleg Gaidarenko
49bce47124 Core:CSS:Event: simplification of native method signatures
* Remove third argument from "addEventListener"

* Remove third argument from "removeEventListener"

* Remove second argument from "getComputedStyle"

Ref gh-2047
Ref 85577a348a
2015-05-03 13:59:18 +03:00
Oleg Gaidarenko
4632e55870 Ajax: remove "onunload" event handler
Remove hack for IE lost connections, update for it was released
by Microsoft at November 12, 2013.
See https://support.microsoft.com/en-us/kb/2905733

Ref trac-5280
Ref gh-2047
Ref a117dd05f6
2015-05-03 13:58:28 +03:00
Oleg Gaidarenko
0fc5bebb63 Event: add support comment
(cherry-picked from 9db9316609)

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

Since we don't have this in off method and its a common perception
that this is a rudiment code

Ref gh-2248
Closes gh-2249
2015-05-03 13:57:55 +03:00
Richard Gibson
fb25bacf9b Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203

(cherry picked from commit 225bde37c9)

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

(cherry picked from commit 4b27ae16a2)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 11:37:01 -04:00
Timmy Willison
1e7a2f3674 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:03:32 -04:00
Richard Gibson
35295f1c20 Deferred: Always handle progress callbacks before done/fail
Fixes gh-2013
Fixes gh-2010
Closes gh-2210

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

Close gh-2179
2015-04-13 11:53:54 -04:00
Michał Gołębiowski
02a9d9f94b CSS: Don't expose jQuery.swap
jQuery.swap was an undocumented API used only internally. With the modular
AMD system we currently have it's not necessary to expose this function
publicly under the jQuery object.

Fixes gh-2058
Closes gh-2182
2015-04-13 11:50:27 -04:00
Timmy Willison
7bce5b0ee1 Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
2015-03-30 15:30:21 -04:00
Dave Methvin
e38138af6a Wrap: Support .unwrap( selector) for selective unwrapping
Fixes gh-1744
Closes gh-2003
(cherry picked from commit 7b09235cee)
2015-03-30 13:39:44 -04:00
Richard Gibson
34f2563179 Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996

(cherry picked from commit 555a50d340)
2015-03-20 02:14:04 -04:00
Timmy Willison
a403655491 Attributes: revert returning null for non-elements 2015-03-16 14:12:00 -04:00
Timmy Willison
17bd6e9cf9 Attributes: fix failing test for new return value 2015-03-16 11:54:43 -04:00
Winston Howes
afca031826 Attributes: return null when attribute does not exist
Fixes gh-2118
Close gh-2129

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

(cherry picked from commit 9b03f6df88)

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

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

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

See discussion in
a5e1c9b44c
2015-03-08 06:25:01 +03:00
Oleg Gaidarenko
7cd9a36322 Core: change jQuery.each and jQuery#each signatures
(cherry-picked from 2380028ec4)
Fixes gh-2090
Closes gh-2097
2015-02-19 11:31:55 +03:00
Oleg Gaidarenko
08777336be Ajax: remove use of jQuery#each second argument
(cherry-picked from a4715f4216)
Ref gh-2090
2015-02-19 11:31:39 +03:00
Oleg Gaidarenko
9368a8cd8c Ajax: remove deprecated extensions from ajax promise
(cherry-picked from 9d1b989f20)
Fixes gh-2084
Closes gh-2092
2015-02-17 09:59:22 +03:00
Oleg Gaidarenko
04fc801217 Ajax: move explanatory comment to appropriate place
Ref 4b3e63066d
2015-02-15 02:27:54 +03:00
Oleg Gaidarenko
fd80f5970f 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

(cherry-picked from 97ef1f2612)
Closes gh-2033
2015-02-15 02:06:34 +03:00
Oleg Gaidarenko
1d3d2b1aa6 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
Ref 4ef120d3f2
2015-02-15 02:03:32 +03:00
Oleg Gaidarenko
4b3e63066d 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

Ref 0ac28ed293
2015-02-15 02:03:20 +03:00
Oleg Gaidarenko
939e755163 Manipulation: don't auto-insert tbody
Fixes gh-1835
Closes gh-2021
Ref e984d1c79c
2015-02-11 17:11:15 +03:00
Oleg Gaidarenko
b744a50d47 Manipulation: simplify html wrappers
Take advantage of html serialization for html wrappers - saves 26 bytes
Plus add additional test for "col" element

(cherry-picked from 0ea342a6a6)

Closes gh-2031
Fixes gh-2002
2015-02-11 00:46:12 +03:00
Oleg Gaidarenko
3e8712062d Manipulation: simplification of manipulation wrappers
Since support for IE6-7 was dropped these wrappers no longer required

Ref 90d7cc1d8b
Ref gh-2002
Closes gh-2032
2015-02-10 23:23:24 +03:00
Michał Gołębiowski
4a67512f8b CSS: Fix the pixelMarginRight support test in IE8 2015-02-08 02:03:17 +01:00
Michał Gołębiowski
25bc6809c5 CSS: Add a support test for the hack for .css('marginRight') etc.
This hack turns out to be needed by Android 4.0-4.3.

Add a support test so that the hack is invoked only where needed.

Refs 3747cc642a

Refs gh-1815
Refs gh-1820
Refs gh-1842
Closes gh-2061
2015-02-05 02:46:10 +01:00
Michał Gołębiowski
f3e3a208de Event: Add a note about a mouseenter bug in Chrome
Also, add a support comment about older Safari.

Refs https://code.google.com/p/chromium/issues/detail?id=333868
Partially cherry-picked from a5e1c9b44c
2015-01-25 01:13:04 +01:00
Timo Tijhof
61bb61279c Core: Return empty array instead of null for parseHTML("")
Fixes gh-1997
Close gh-1998

Conflicts:
	test/unit/core.js
2015-01-19 11:41:32 -05:00
Dave Methvin
a05de404d8 Event: HTML5 drop events inherit from MouseEvent
Fixes gh-2009
Ref gh-1925
(cherry picked from commit d7e5fcee51)

Conflicts:
	test/unit/event.js
2015-01-14 14:45:44 -05:00
Oleg Gaidarenko
96447575c2 Offset: simplify jQuery#offsetParent method
* It seems, check for html element (and previously for body element)
  was redundant

* Simplify "return" statement

* Add comment about potential errors that didn't find themselves
  in real life app

Ref 74ae544483
2015-01-13 08:40:00 +03:00
Leonardo Braga
5d522f5c74 Manipulation: add support to tag-hyphenated elements
Ref #1987
Ref 85ffc6d973
2015-01-13 07:54:37 +03:00
Leonardo Braga
f19595cef4 Core: add support to tag-hyphenated elements
Ref #1987
Ref 534f13025a
2015-01-13 07:48:33 +03:00
Dave Methvin
e2ec5da2a7 Core: Remove deprecated context and selector properties
Fixes gh-1908
Closes gh-2000
(cherry picked from commit 0ea8c32863)
2015-01-11 21:14:22 -05:00
George Mauer
26150f0910 Ajax: $.post and $.get can now take an options object
Fixes gh-1986
Closes gh-1995
(cherry picked from commit 89ce0af2cf)
2015-01-11 20:47:20 -05:00
Richard Gibson
6ae222a54f Core: Standardize indexOf comparisons
not present: `< 0`
present: `> -1`
at index: `=== N`

(cherry picked from commit 53aa87f3bf)

Closes gh-1985
2015-01-10 23:56:39 -05:00
Richard Gibson
18baae2efb Callbacks: Reduce size 2015-01-10 22:17:27 -05:00
Richard Gibson
fc7477f492 Callbacks: Don't abort execution on .lock()
Fixes gh-1990
Closes gh-1991
2015-01-10 21:25:00 -05:00
Richard Gibson
f5a8c649b5 Callbacks: No object starts out locked
Fixes gh-1989
2015-01-10 21:24:35 -05:00
Aditya Raghavan
5b0b1b77db Event: Normalize mouse event properties in drag events
DragEvent is a superset of MouseEvent, so we want to fix up mouse
properties like pageX and pageY.

Fixes gh-1925
(cherry picked from commit 389b2ab3b93bfd68ca6c6153a43e11d93ab9ec71)
2015-01-05 15:30:32 -05:00
Anne-Gaelle Colom
a0bf5bf710 Build: Remove dates from copyright notice
Closes gh-1983
(cherry picked from commit 66e1b6b8d4)

Conflicts:
	Gruntfile.js
2015-01-03 16:11:22 -05:00
Norman Xu
2866da9e12 Event: Add reference to data module
Since we are using _data() quite a lot in event module
and drop data/accepts as there is no direct reference

Ref gh-1948
2014-12-31 17:43:03 +03:00
Nicolas HENRY
efb98f85ba Deferred: Fix $.when with resolved deferred and progress callbacks
Ref ab20d9d24f
2014-12-25 15:48:57 +03:00
Oleg Gaidarenko
dac716ca65 CSS: simplify hack of css getter for the computed values
Ref gh-1906
2014-12-24 02:46:09 +03:00
Oleg Gaidarenko
d9d8906cfd CSS: simplify "defaultDisplay" module
Ref 90d7cc1d8b
Ref gh-1961
2014-12-24 02:46:04 +03:00
Oleg Gaidarenko
7230df15ac Traversing: simplify jQuery#contents method
Ref 90d7cc1d8b
Ref gh-1961
2014-12-24 02:45:56 +03:00
Oleg Gaidarenko
3dcee02160 Manipulation: make wrapAll funarg execute only once
Ref 359b03cac7
2014-12-24 01:58:39 +03:00
Ben Toews
de7ae8cd17 Ajax: use anchor tag for parsing urls
Fixes gh-1875
Closes gh-1880
(cherry picked from commit 5a75278e4c5359e07303fc4d8e78a1cf94f6ad65)

Conflicts:
	src/ajax.js
2014-12-11 15:47:23 -05:00
Jason Bedard
9d1d90e7a2 Data: use removeAttribute in cleanData to bypass Chrome bug
Related:
https://code.google.com/p/chromium/issues/detail?id=378607

Fixes gh-1664
2014-12-10 11:47:54 -05:00
Timmy Willison
57652eecd9 Build: fix tests in AMD mode 2014-12-10 10:18:59 -05:00
Timmy Willison
828a718aa0 Core: introduce createHTMLDocument in parseHTML; Safari 8/IE8 left out
Close gh-1506
2014-12-10 10:08:04 -05:00
Dave Methvin
51564bbd39 Event: Empty namespaces should be uneventfully ignored
Thanks @hamishdickson for the report!

Closes gh-1769
(cherry picked from commit 8653068dd6)
2014-12-09 20:10:56 -05:00
Daniel Husar
4cc4e54298 Core: Simplify and speed up .each
Closes gh-1510

(cherry picked from commit eeda11cdd6)
2014-12-09 01:47:40 -05:00
Michał Gołębiowski
aec41a5c41 Attributes: Simplify the option val hook; backport a test from master
The hook is still defined; not using it could cause issues in IE<11.
Backport the test from the master branch.

Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

(cherry-picked from f6302b0b53)

Fixes gh-1902
Closes gh-1901
2014-12-08 22:51:55 +01:00
Michał Gołębiowski
90d7cc1d8b Misc: Drop support for older browsers; update support comments
That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.

Fixes gh-1836
Fixes gh-1701
Refs gh-1815
Refs gh-1820
2014-12-08 21:12:33 +01:00
Dave Methvin
61df648651 Callbacks: Disabling a callback should prevent firing
Thanks to @TheDistantSea for the report!

Fixes gh-1790
Closes gh-1643
(cherry picked from commit bc1cb122db)
2014-12-07 21:00:45 -05:00
Dave Methvin
faf295a6d8 Manipulation: Plug an IE8 memory leak in noCloneEvent feature detect
Fixes gh-1840

This feature detect could be simplified now that the only supported browser
with this problem is IE8.
2014-12-06 16:56:41 -05:00
Dave Methvin
a90ff8c8c7 Event: Copy detail property to jQuery.Event on native events
Fixes gh-1867
(cherry picked from commit d9ed166c86)

Conflicts:
   test/unit/event.js
2014-12-03 16:01:40 -05:00
Dave Methvin
93f95c9663 Core: Throw an error on $("#") rather than returning 0-length collection
Closes gh-1682

Thanks @goob for the issue report!
(cherry picked from commit 80022c81ce)
2014-12-03 14:55:33 -05:00
Bin Xin
bc1902ddc0 Manipulation: support data-URI scripts insertion
Ref 15f4dec789
2014-12-03 05:35:20 +03:00
Dave Methvin
fa70df692e CSS: Clean up memory leak in reliableMarginRight
Fixes gh-1795
Closes gh-1893

Thanks for the report flexphperia!
(cherry picked from commit 7d15b4d1f1)

Conflicts:
	src/css/support.js
2014-12-02 15:18:03 -05:00
Oleg Gaidarenko
1eedf0e9ea Dimensions: allow modification of coordinates argument
Ref f7e60dc83d
2014-11-16 18:06:39 +03:00
Zheming Sun
c5e8e12cef CSS: Fix get upper case alpha opacity in IE8
Fixes gh-1705
Closes gh-1704
2014-11-08 17:43:33 +01:00
Michał Gołębiowski
8cd6875935 Build: Put "jQuery Compat" in banners in built files 2014-11-03 23:32:56 +01:00
Dan Hart
73c1ceaf42 Ajax: Fix for request aborted in ajaxSend
Fixes gh-1775
Close gh-1619
2014-11-01 12:48:12 -04:00
Arthur Verschaeve
e4cbc973d5 Change broken url to wayback one 2014-10-30 10:28:33 -04:00
Michał Gołębiowski
f1913cf031 Deprecated: Drop size and andSelf methods
(cherry-picked from f110360f65)

Fixes gh-1749
Closes gh-1822
2014-10-30 14:09:34 +01:00
Oleg Gaidarenko
c580a52971 Ajax: remove event dependency from the ajax module
Ref 4e7f34f629
2014-10-14 21:25:12 +04:00
Alexander Farkas
a9533893b9 Manipulation: Update html5shiv elements
Include main, dialog, picture and template in html5shiv elements.

Fixes #15241
Closes gh-1655
2014-09-13 15:32:50 -05:00
Daniel Herman
d4a998f62f Event: Restore the constructor property on jQuery.Event prototype
The original definition of the jQuery.Event prototype was paving over the
`constructor` property which was causing jQuery.isPlainObject to
improperly report that an instance of jQuery.Event was a plain object.

Fixes #15090
Closes gh-1580

(cherry picked from commit b807aedb7f)
2014-09-04 03:29:16 -04:00
Oleg Gaidarenko
787ffbf5fa CSS: Correct typo in the comment 2014-09-03 00:20:41 +04:00
Oleg Gaidarenko
b05b6a2219 CSS: Use pre-defined displays for html and body
Ref 60f546acb1
Ref 274feb53cc
Ref a7724186c9
2014-09-03 00:13:29 +04:00
Nazar Mokrynskyi
44c9c4f751 CSS: Remove use of getDefaultComputedStyle
Remove optimization to make jQuery compatible with Google's Polymer project

Ref 274feb53cc
2014-09-02 23:35:18 +04:00
Chris Antaki
835e8c4ae3 Core: Drop strundefined variable
Ref 29838b6cab
Closes gh-1628
2014-09-02 20:35:49 +04:00
Aurelio De Rosa
b59b819ffe CSS: Removed redundant "to the number" in comment
Ref 895ea6887d
2014-09-02 20:14:01 +04:00
Timmy Willison
7b9b98d6e3 CSS: elements are hidden when either offsetWidth or offsetHeight is zero
- Note: this is a breaking change that has been delayed for several versions.

Fixes #10406
Fixes #13132

Conflicts:
	src/css/hiddenVisibleSelectors.js
2014-07-17 17:33:29 -07:00
Timmy Willison
91e06e9aeb Build: update grunt-jscs-checker and pass with the new rules
Conflicts:
	build/tasks/build.js
	src/ajax/xhr.js
	src/attributes/classes.js
	src/attributes/prop.js
	src/attributes/val.js
	src/core/init.js
	src/core/ready.js
	src/css.js
	src/css/curCSS.js
	src/css/defaultDisplay.js
	src/data.js
	src/data/var/dataPriv.js
	src/data/var/dataUser.js
	src/dimensions.js
	src/effects.js
	src/event.js
	src/manipulation.js
	src/offset.js
	src/queue.js
	src/selector-native.js
	test/data/testrunner.js
2014-07-17 11:08:37 -07:00
Chris Antaki
e38a94a61c Ajax: Add support comment and fix code style issue
Closes gh-1600
Ref e5190982c4
Ref #8138
2014-07-13 00:38:37 +04:00
Timo Tijhof
eeab75da00 Core: Consistently use local reference to access()
Ref 2fb719e5aa
Ref 2063d6c189
2014-07-13 00:37:54 +04:00
Scott González
72e6192517 Build: Move all external libraries to external directory
Closes gh-1593

Conflicts:
	Gruntfile.js
	test/index.html
2014-06-25 13:48:49 -04:00
Scott González
62f7f7be9b Build: Remove unused Sizzle test files 2014-06-25 13:45:21 -04:00
Oleg Gaidarenko
9dc29a2b13 Effects: Improve raf logic
* Make animation behave as if jQuery.fx.off = true if document is hidden

* Use cancelAnimationFrame in jQuery.fx.stop

Ref 708764f47b
2014-06-16 03:21:53 +04:00
Oleg Gaidarenko
06a4540696 Effects: Reintroduce use of requestAnimationFrame
Same as before, just use don't use prefixes, since they pretty match useless now
and use page visibility API to determine if animation should start.

Also null the requestAnimationFrame attribute in window for tests since
sinon does not provide fake method for it.

Fixes #15147
Ref 72119e0023
2014-06-16 03:21:48 +04:00
Oleg Gaidarenko
37f0f7f42c Ajax: Always use script injection in globalEval
Fixes #14757
Ref bbdfbb4ee8
2014-06-16 03:21:39 +04:00
Oleg Gaidarenko
76294e1e9e CSS: Do not throw on frame elements in FF
IE9-10 throws on elements created in popups (see #14150), FF meanwhile throws
on frame elements through "defaultView.getComputedStyle" (see #15098)

Use "defaultView" if in the popup which would fix IE issue,
use "window.getComputedStyle" which would fix FF issue.

And everybody wins, except performance, but who cares right?

Fixes #15098
Ref e488d985cf
2014-06-16 03:21:34 +04:00
Richard Gibson
b6e99eb43c Core: Work around loss of precision from parseFloat
Fixes #15100
2014-06-07 14:22:49 -04:00
TJ VanToll
6cb17c8ea4 Wrap: Declare a dependency on the manipulation module
Fixes #15121
Closes gh-1589
2014-06-02 16:44:22 -04:00
TJ VanToll
479e37f436 Ajax: Support usage without jQuery.event
Fixes #15118
Closes gh-1588
2014-06-02 16:41:00 -04:00
Timmy Willison
8530a2fc72 Ajax: move ajax event aliases to their own file
Fixes #15126
2014-06-02 12:41:24 -04:00
Dave Methvin
062a7d63e4 Data: Work around IE11 bug with onpageshow attribute
Fixes #14894
(cherry picked from commit b8133e282c)

Conflicts:
	src/data.js
	test/unit/data.js
2014-04-30 11:00:14 -04:00
Oleg Gaidarenko
f833c9af57 Effects: Respect display value on inline elements
Take "olddisplay" value into the account

Fixes #14824
Closes gh-1566
Ref 73fe17299a

(cherry-picked from c34dbf5a8d)
Conflicts:
	src/effects.js
2014-04-30 17:14:22 +04:00
Richard Gibson
12104f0401 Selector: Update Sizzle to 1.10.19
Fixes #14901
Fixes #14793
(cherry picked from commit 90b43de212)
2014-04-18 17:19:04 -04:00
Christian Kosmowski
90c50ef961 Dimensions: Reverse a check to avoid potential reflows
Fixes #14979
Closes gh-1560
(cherry picked from commit 1ca84214cc)

Conflicts:
	AUTHORS.txt
2014-04-18 10:10:11 -04:00
Richard Gibson
8072d25e6f Effects: Fix inline element animations
Ref 80cf965e02
Ref #14848
2014-03-24 12:36:15 -04:00
Michał Gołębiowski
10d7d5ce9d Css: change boxSizingReliable in IE<9.
Change boxSizingReliable test value to false in all IE versions.
Modify support comments to argument getComputedStyle guards
with oldIE support and not node.js which is not supported in 1.x.

Closes gh-1498
2014-03-21 08:30:41 -04:00
Michał Gołębiowski
98b5275c12 Event: Remove redundant fallback to getPreventDefault()
Android 2.3 is happy with returnValue already used for oldIE;
the getPreventDefault() fallback is not needed.

Closes gh-1546
2014-03-20 23:10:36 -04:00
Richard Gibson
80cf965e02 Effects: Don't overwrite display:none when .hide()ing hidden elements
Fixes #14848
Closes gh-1548
(cherry picked from commit 890d441aa5)

Conflicts:
	src/effects.js
2014-03-20 23:01:39 -04:00
Oleg Gaidarenko
6dcca6da36 CSS: jQuery#hide should always save display value
Fixes #14750
Closes gh-1509
(cherry picked from commit 5a8f769332)

Conflicts:
	src/css.js
2014-03-20 22:47:35 -04:00
John Hoven
9ec429cf62 Attributes: Trim whitespace from option text when returned as a value
Fixes #14858
Ref #14686
Closes gh-1531
2014-03-20 15:44:09 -04:00
Rodrigo Rosenfeld Rosas
5a1db91bf3 CSS: window.getDefaultComputedStyle may return null
Fixes #14736
Closes gh-1501
(cherry picked from commit 51910ba8a5aff4cd1a811f1fdb76a6c62a09a666)
2014-03-20 14:44:25 -04:00
Benjy Cui
17d8df8eec Core: Fix comments for .get() method
Closes gh-1547
(cherry picked from commit ca0086b55a)
2014-03-20 12:52:22 -04:00
louisremi
64d7c168c8 Event: Treat Pointer events like mouse events, #14741
Ref #14741
Ref gh-1503
(cherry picked from commit e06f428f6e)
2014-03-16 11:01:09 -04:00
Roman Rei_
045aeda1e3 CSS: Add flex-grow and flex-shrink to cssNumber
Fixes #14888
Closes gh-1536
(cherry picked from commit c29e9c4db1)
2014-03-13 23:14:55 -04:00
S. Andrew Sheppard
6d761984eb AMD: Note on AMD best practices
Fixes #14687
Closes gh-1478
(cherry picked from commit 19220c0f29fa60d80a2beb76f048ffc8b972ba35)

Conflicts:
	AUTHORS.txt
2014-03-12 23:21:30 -04:00
Dave Methvin
4c68d107b5 Event: Call underlying stopImmediatePropagation when present
Fixes #13997
(cherry picked from commit 6a89db86ed)
2014-03-12 21:45:50 -04:00
Michał Gołębiowski
b5050dc489 Support: Simplify the box-sizing test
Don't require body in the support.boxSizing test.
2014-03-10 19:25:25 +01:00
Michał Gołębiowski
4a6d1631ea Css: Revert 24e587929f
The workaround to be able to change !important styles broke the browser
keeping the old CSS value if the new one was rejected. Patching it would
involve a significant perf hit (~33%) so the initial patch needs to be
reverted instead.

Tests by m_gol & gibson042.

(cherry-picked from 10e654218a)

Fixes #14836
Closes gh-1532
2014-03-10 19:20:54 +01:00
Dave Methvin
5911b3e087 Ajax: Use two-arg form of .slice() for old IE
Followup to a4b9bc57, #14773
2014-03-04 21:50:43 -05:00
Dave Methvin
80e3dfa6ba Core: Do not run window.onready when ready
Fixes #14802
(cherry picked from commit 2df1aad6a1)
2014-03-04 21:50:43 -05:00
Dave Methvin
4adc5b2217 CSS: Return values should be numbers
Fixes #14792
(cherry picked from commit f4b37d8982)
2014-03-04 21:50:42 -05:00
Dave Methvin
93fdfa2d8c Event: Allow triggerHandler(beforeunload)
Fixes #14791
(cherry picked from commit 06adf7c95d)

Conflicts:
	src/event.js
2014-03-04 21:50:41 -05:00
Dave Methvin
48837b92b0 Ajax: .load() should trim its selector
Fixes #14773
(cherry picked from commit 3a68c114e3)

Conflicts:
	src/ajax/load.js
2014-03-04 21:50:40 -05:00
Dave Methvin
c93b174b92 Core: Arrays like [42] should fail .isNumeric()
Fixes #14179
(cherry picked from commit 10efa1f5b4)
2014-03-04 21:50:39 -05:00
Michał Gołębiowski
a9fa2ec763 Core: Remove native String#trim usage to save size
(cherry-picked from 279913c71b)

Fixes #14794
2014-03-04 23:15:30 +01:00
Richard Gibson
b96522acfe Support: Reduce size via code consolidation and minification awareness
Ref badcd1b6f3
Closes gh-1518
2014-03-04 17:00:38 -05:00
Richard Gibson
81b89fd227 Support: Skip style-based tests when element.style is undefined
Fixes #14785
Ref #13754
Ref badcd1b6f3
2014-02-13 14:57:20 -08:00
Michał Gołębiowski
a0b19f7715 Core: Correct support comments for String.prototype.trim 2014-02-13 14:49:40 -08:00
Michał Gołębiowski
63f5486007 Docs: Add support comments for prefixed box-sizing 2014-02-05 15:59:38 +01:00
Michał Gołębiowski
e70d0d749b Selector: update Sizzle
(cherry-picked from a74ad04bc9)
2014-02-05 15:35:30 +01:00
Michał Gołębiowski
e46cabc6c2 Css: Document reliableMarginRight is needed for Android 2.3 2014-01-27 19:10:18 +01:00
Michał Gołębiowski
f4970c0390 Css: Fix the reliableMarginRight test in oldIE.
This fixes an error introduced by the previous commit.
2014-01-26 02:49:05 +01:00
Michał Gołębiowski
4cbb1a0063 Css: Don’t cache support.reliableMarginRight; thanks @jdalton, @timmywil
Fixes #14731
2014-01-26 02:07:35 +01:00
Dave Methvin
f345291209 Manipulation: Use textarea for missing IE defaultValue check
IE11 fixed the checkbox defaultValue issue but not textarea. Rather than
creating a new detect name I'm reusing the old one to protect anyone who
is unwisely using this externally. Re-fixing the defaultValue when it
doesn't need to be done is not a problem, so leave that code for IE11.

Fixes #14716
Closes gh-1495
2014-01-23 14:14:44 -05:00
Oleg
f601dd4d23 Attrs: Restore ability to pass array to jQuery#val
Thanks @gibson042
2014-01-16 06:55:56 +04:00