Dave Methvin
d7e5fcee51
Event: HTML5 drop events inherit from MouseEvent
...
Fixes gh-2009
Ref gh-1925
2015-01-14 14:34:09 -05:00
Oleg Gaidarenko
74ae544483
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
Closes gh-1968
2015-01-13 08:12:51 +03:00
Leonardo Braga
85ffc6d973
Manipulation: add support to tag-hyphenated elements
...
Fixes #1987
Closes gh-1988
2015-01-13 07:42:59 +03:00
Leonardo Braga
534f13025a
Core: add support to tag-hyphenated elements
...
Ref #1987
2015-01-13 07:42:52 +03:00
Dave Methvin
0ea8c32863
Core: Remove deprecated context and selector properties
...
Fixes gh-1908
Closes gh-2000
2015-01-11 21:11:56 -05:00
George Mauer
89ce0af2cf
Ajax: $.post and $.get can now take an options object
...
Fixes gh-1986
Closes gh-1995
2015-01-11 20:32:38 -05: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
Richard Gibson
4cbf02df84
Callbacks: Reduce size
...
(cherry picked from commit 18baae2efb
)
2015-01-10 23:08:27 -05:00
Richard Gibson
32bf9178ca
Callbacks: Don't abort execution on .lock()
...
Fixes gh-1990
Closes gh-1991
(cherry picked from commit fc7477f492
)
2015-01-10 23:07:39 -05:00
Richard Gibson
0d829f0e9a
Callbacks: No object starts out locked
...
Fixes gh-1989
(cherry picked from commit f5a8c649b5
)
2015-01-10 23:04:34 -05:00
Aditya Raghavan
97cf528082
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
2015-01-05 15:34:52 -05:00
Anne-Gaelle Colom
66e1b6b8d4
Build: Remove dates from copyright notice
...
Closes gh-1983
2015-01-03 16:01:57 -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
Nicolas HENRY
ab20d9d24f
Deferred: Fix $.when with resolved deferred and progress callbacks
...
Fixes gh-1894
Closes gh-1915
2014-12-25 15:39:28 +03: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
c62486fb4c
CSS: simplify "defaultDisplay" module
...
Closes gh-1962
2014-12-24 02:25:04 +03:00
Oleg Gaidarenko
359b03cac7
Manipulation: make wrapAll funarg execute only once
...
Fixes gh-1843
Closes gh-1912
2014-12-24 01:51:33 +03:00
Mike Sidorov
6f65f5faf2
Data: shave off a couple of bytes
...
Closes gh-1931
2014-12-24 01:44:38 +03:00
Victor Homyakov
72c4a067a9
Data: speed up $.fn.data() for camel-cased key
...
Fixes gh-1941
Closes gh-1952
2014-12-24 01:34:40 +03:00
Aditya Raghavan
d21edb599d
Event: fix incorrect window bug with scrollTop/Left in iframes
...
Fixes gh-1945
Closes gh-1959
2014-12-24 00:33:00 +03:00
Ben Toews
b091fdbafa
Ajax: use anchor tag for parsing urls
...
Fixes gh-1875
Closes gh-1880
2014-12-11 15:26:04 -05:00
Timmy Willison
cfe468f29c
Core: re-introduce createHTMLDocument in parseHTML; Safari 8 left out
...
Close gh-1505
2014-12-10 09:51:30 -05:00
Dave Methvin
8653068dd6
Event: Empty namespaces should be uneventfully ignored
...
Thanks @hamishdickson for the report!
Closes gh-1769
2014-12-09 19:59:56 -05:00
Timmy Willison
b77983173e
Core: revert addition of createHTMLDocument. Thanks, Safari 8.
...
- Safari 8 has issues when the HTML string contains forms.
Closing tags are not respected.
2014-12-09 18:01:33 -05:00
Timmy Willison
31c7d7fb75
Core: pass empty string to createHTMLDocument to appease IE
2014-12-09 16:37:30 -05:00
Timmy Willison
59232825aa
Core: remove unnecessary support test for createHTMLDocument
2014-12-09 15:57:12 -05:00
Timmy Willison
6051609df3
Build: fix tests in AMD mode
2014-12-09 15:39:24 -05:00
Frederic Hemberger
58c2460821
Core: use document.implemenation.createHTMLDocument in jQuery.parseHTML
...
Close gh-1505
2014-12-09 15:19:01 -05:00
Daniel Husar
eeda11cdd6
Core: Simplify and speed up .each
...
Closes gh-1510
2014-12-09 01:46:22 -05:00
Michał Gołębiowski
f6302b0b53
Attributes: Use the option val hook in select val hook and simplify it
...
The hook is still defined; not using it could cause issues in IE<11.
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.
Fixes gh-1902
Closes gh-1901
2014-12-08 22:39:58 +01:00
Dave Methvin
bc1cb122db
Callbacks: Disabling a callback should prevent firing
...
Thanks to @TheDistantSea for the report!
Fixes gh-1790
Closes gh-1643
2014-12-07 20:51:04 -05:00
Dave Methvin
d9ed166c86
Event: Copy detail property to jQuery.Event on native events
...
Fixes gh-1867
2014-12-03 15:56:50 -05:00
Dave Methvin
80022c81ce
Core: Throw an error on $("#") rather than returning 0-length collection
...
Closes gh-1682
Thanks @goob for the issue report!
2014-12-03 14:51:24 -05:00
Bin Xin
15f4dec789
Manipulation: support data-URI scripts insertion
...
Fixes gh-1887
Closes gh-1888
2014-12-03 04:54:53 +03:00
Dave Methvin
7d15b4d1f1
CSS: Clean up memory leak in reliableMarginRight
...
Fixes gh-1795
Closes gh-1893
Thanks for the report flexphperia!
2014-12-02 15:01:45 -05:00
Oleg Gaidarenko
f7e60dc83d
Dimensions: allow modification of coordinates argument
...
Fixes gh-1848
Closes gh-1853
2014-11-16 18:05:29 +03:00
Michał Gołębiowski
1bbb678949
Manipulation: Check state lost if the name is set for Android 4.0-4.3
...
Refs gh-1820
Closes gh-1841
2014-11-06 16:05:18 +01:00
Michał Gołębiowski
c309b95756
Misc: Adjust comments & docs to dropping IE<8 in jQuery Compat
2014-11-04 16:16:36 +01:00
Michał Gołębiowski
740e190223
Misc: Drop support for older browsers; update support comments
...
That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Closes gh-1820
Refs gh-1815
2014-11-03 18:37:26 +01:00
Timmy Willison
758fd6cea9
Docs: 1.x-master branch -> compat branch; 2.x branch -> master branch
2014-11-03 12:34:45 -05:00
Dan Hart
598ed050f6
Ajax: Fix for request aborted in ajaxSend
...
Fixes gh-1775
Close gh-1619
2014-11-01 12:44:43 -04:00
Arthur Verschaeve
31d58c5cbb
Change broken url to wayback one
2014-10-30 10:26:38 -04:00
Michał Gołębiowski
f110360f65
Deprecated: Drop size and andSelf methods
...
Fixes gh-1749
Closes gh-1822
2014-10-30 01:19:54 +01:00
Oleg Gaidarenko
4e7f34f629
Ajax: remove event dependency from the ajax module
...
Closes gh-1695
2014-10-14 21:24:05 +04:00
Jason Bedard
0cdec797de
Data: avoid non-alphanumeric chars in expando properties
...
Ref chromium issue 378607
Ref #14839
Closes gh-1662
2014-09-26 15:03:05 +04:00
Daniel Herman
b807aedb7f
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
2014-09-04 03:28:40 -04:00
Richard Gibson
1ae025e24f
Manipulation: Tolerate XMLNode host object input to getAll
...
Fixes #15151
Ref 25712d77c3
Closes gh-1602
2014-09-04 02:41:57 -04:00
Oleg Gaidarenko
7e09619cdf
CSS: Correct typo in the comment
2014-09-03 00:20:23 +04:00
Oleg Gaidarenko
a7724186c9
CSS: Use pre-defined displays for html and body
...
Ref 60f546acb1
Ref 274feb53cc
2014-09-03 00:11:05 +04:00
Nazar Mokrynskyi
274feb53cc
CSS: Remove use of getDefaultComputedStyle
...
Remove optimization to make jQuery compatible with Google's Polymer project
Closes gh-1647
Fixes #15227
2014-09-02 23:34:48 +04:00
Oleg Gaidarenko
075da3091c
Attr: Use typeof check for getAttribute method
...
Ref 29838b6cab
2014-09-02 21:48:35 +04:00
Chris Antaki
15a609f766
Build: Moved JSHint directives to .jshintrc file
...
Closes gh-1595
2014-09-02 20:31:11 +04:00
Chris Antaki
4287442ab8
Offset: Simplified a conditional
2014-09-02 20:29:10 +04:00
Chris Antaki
29838b6cab
Core: Drop strundefined variable
2014-09-02 20:29:10 +04:00
Aurelio De Rosa
895ea6887d
CSS: Removed redundant "to the number" in comment
...
Closes gh-1594
2014-09-02 20:12:35 +04:00
Timmy Willison
10399ddcf8
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
2014-07-17 17:03:35 -07:00
Timmy Willison
c869a1ef8a
Build: update grunt-jscs-checker and pass with the new rules
2014-07-17 10:25:59 -07:00
Chris Antaki
e5190982c4
Ajax: Remove workaround for IE6/7
...
Closes gh-1597
Ref #8138
2014-07-13 00:34:40 +04:00
Timo Tijhof
2fb719e5aa
Core: Consistently use local reference to access()
...
Ref 3b53b75160
Closes gh-1605
2014-07-12 22:10:45 +04:00
Scott González
c5d9d88dce
Build: Move all external libraries to external directory
...
Closes gh-1593
2014-06-24 10:17:50 -04:00
Scott González
8d113104e9
Build: Remove unused Sizzle test files
2014-06-24 10:16:55 -04:00
Oleg Gaidarenko
708764f47b
Effects: Improve raf logic
...
* Make animation behave as if jQuery.fx.off = true if document is hidden
* Use cancelAnimationFrame in jQuery.fx.stop
Closes gh-1578
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
72119e0023
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
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
bbdfbb4ee8
Ajax: Always use script injection in globalEval
...
Fixes #14757
Closes gh-1449
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
e488d985cf
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
Closes gh-1583
2014-06-16 03:08:26 +04:00
Dave Methvin
d837f119c3
Support: clean up comments and Support notation
...
Closes gh-1577
2014-06-10 23:28:14 -04:00
Richard Gibson
e1192af872
Core: Work around loss of precision from parseFloat
...
Fixes #15100
(cherry picked from commit b6e99eb43c
)
2014-06-07 14:35:01 -04:00
TJ VanToll
c18c6229c8
Wrap: Declare a dependency on the manipulation module
...
Fixes #15121
Closes gh-1589
2014-06-02 16:43:46 -04:00
TJ VanToll
d41e81980e
Ajax: Support usage without jQuery.event
...
Fixes #15118
Closes gh-1588
2014-06-02 15:08:40 -04:00
Timmy Willison
97c803acfb
Ajax: move ajax event aliases to their own file
...
Fixes #15126
2014-06-02 12:39:11 -04:00
Dave Methvin
b8133e282c
Data: Work around IE11 bug with onpageshow attribute
...
Fixes #14894
2014-04-30 10:46:26 -04:00
Oleg Gaidarenko
c34dbf5a8d
Effects: Respect display value on inline elements
...
Take "olddisplay" value into the account
Fixes #14824
Closes gh-1566
Ref 73fe17299a
2014-04-30 17:05:48 +04:00
Richard Gibson
90b43de212
Selector: Update Sizzle to 1.10.19
...
Fixes #14901
Fixes #14793
2014-04-18 17:17:51 -04:00
Christian Kosmowski
1ca84214cc
Dimensions: Reverse a check to avoid potential reflows
...
Fixes #14979
Closes gh-1560
2014-04-18 10:00:42 -04:00
Philip Jägenstedt
2c2c93c7cb
Selector: Use Element.matches in selector-native if available
...
Spec:
http://dom.spec.whatwg.org/#dom-element-matches
Support in Chromium:
https://code.google.com/p/chromium/issues/detail?id=326652
Fixes #14902
Closes gh-1524
2014-03-20 23:32:40 -04:00
Michał Gołębiowski
ad032d3c7d
Event: Fix isDefaultPrevented for bubbled events in Android 2.3
...
Fixes #14897
Closes gh-1545
2014-03-20 23:16:30 -04:00
Richard Gibson
890d441aa5
Effects: Don't overwrite display:none when .hide()ing hidden elements
...
Fixes #14848
Closes gh-1548
2014-03-20 22:54:38 -04:00
Oleg Gaidarenko
5a8f769332
CSS: jQuery#hide should always save display value
...
Fixes #14750
Closes gh-1509
2014-03-20 22:37:05 -04:00
Jonathan Sampson
85af4e6412
Manipulation: Change support test to be WWA-friendly
...
Setting the innerHTML property in an unsafe manner raises issues in
Windows Web Applications. Strings being passed into innerHTML cannot
include the name attribute.
Closes gh-1537
2014-03-20 16:54:37 -04:00
John Hoven
541e7349b6
Attributes: Trim whitespace from option text when returned as a value
...
Fixes #14858
Ref #14686
Closes gh-1531
(cherry picked from commit 9ec429cf62
)
Conflicts:
src/attributes/val.js
2014-03-20 15:47:35 -04:00
Rodrigo Rosenfeld Rosas
e547a2775f
CSS: window.getDefaultComputedStyle may return null
...
Fixes #14736
Closes gh-1501
(cherry picked from commit 51910ba8a5aff4cd1a811f1fdb76a6c62a09a666)
2014-03-20 14:42:44 -04:00
Benjy Cui
ca0086b55a
Core: Fix comments for .get() method
...
Closes gh-1547
2014-03-20 12:50:52 -04:00
louisremi
e06f428f6e
Event: Treat Pointer events like mouse events, #14741
...
Ref #14741
Ref gh-1503
2014-03-16 10:49:57 -04:00
Roman Rei_
c29e9c4db1
CSS: Add flex-grow and flex-shrink to cssNumber
...
Fixes #14888
Closes gh-1536
2014-03-13 23:12:40 -04:00
S. Andrew Sheppard
2585ee5880
AMD: Note on AMD best practices
...
Fixes #14687
Closes gh-1478
2014-03-12 23:22:31 -04:00
Dave Methvin
6a89db86ed
Event: Call underlying stopImmediatePropagation when present
...
Fixes #13997
2014-03-12 21:11:26 -04:00
Michał Gołębiowski
2c180ef938
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.
Fixes #14836
Closes gh-1532
2014-03-10 19:14:44 +01:00
Michał Gołębiowski
a96d5bed58
Manipulation: don't use Object.keys for consistency
...
Fixes #14659
2014-03-09 23:31:59 +01:00
Dave Methvin
2df1aad6a1
Core: Do not run window.onready when ready
...
Fixes #14802
2014-03-04 21:00:04 -05:00
Dave Methvin
f4b37d8982
CSS: Return values should be numbers
...
Fixes #14792
2014-03-04 20:58:31 -05:00
Dave Methvin
06adf7c95d
Event: Allow triggerHandler(beforeunload)
...
Fixes #14791
2014-03-04 20:49:57 -05:00
Dave Methvin
3a68c114e3
Ajax: .load() should trim its selector
...
Fixes #14773
2014-03-04 20:43:14 -05:00
Dave Methvin
10efa1f5b4
Core: Arrays like [42] should fail .isNumeric()
...
Fixes #14179
2014-03-04 20:40:23 -05:00
Michał Gołębiowski
279913c71b
Core: Remove native String#trim usage to save size
...
Fixes #14794
2014-03-04 23:08:35 +01:00
Richard Gibson
954966e08d
Support: Reduce size
...
Ref a7ea12a9a7
2014-02-14 07:05:47 -08:00
Richard Gibson
a7ea12a9a7
Support: Skip style-based tests when element.style is undefined
...
Fixes #14785
Ref #13754
Ref badcd1b6f3
2014-02-14 06:22:44 -08:00
Michał Gołębiowski
eda283d0e4
Core: Fix trim in Android<4.1
2014-02-13 14:48:58 -08:00
Michał Gołębiowski
79f59c2144
Support: Document box-sizing was unprefixed in Firefox 29
2014-02-05 15:57:11 +01:00
Michał Gołębiowski
a74ad04bc9
Selector: update Sizzle
2014-02-05 15:10:22 +01:00
Oleg
cab18353a6
Attrs: Simplify an option hook
...
Since getter was removed in fdd78fad19
there is no longer a need to wrap option element in order to get its value
Fixes #14756
2014-02-05 10:46:00 +04:00