Michał Gołębiowski-Owczarek
93ca49e6d1
Core: Simplify code post browser support reduction
...
Summary of the changes:
* Core: Simplify code post browser support reduction
* Tests: Remove legacy jQuery.cache & oldIE leftovers
* Tests: Reformat JavaScript in delegatetest.html
* Docs: "jQuery Foundation Projects" -> "jQuery Projects"
* Tests: Drop an unused localfile.html file (modern browsers don't support
the `file:` protocol this way, there's no point in keeping the file around)
* Effects: Remove a redundant `!fn` check (`fn || !fn && easing` is equivalent
to `fn || easing`; simplify the code)
* CSS: Explain the fallback to direct object access in curCSS better
* Tests: Deduplicate `jQuery.parseHTML` test titles
* Dimensions: Add a test for fractional values
* Tests: Fix a buggy WebKit regex
Closes gh-5296
2023-09-20 00:54:40 +02:00
Julian Alexander Murillo
c577928d45
Tests: Change quotes according to style guidelines
...
Close gh-2339
2015-10-18 13:17:23 -04:00
Richard Gibson
363299ac24
Ref #13316 : Sync all documents on full vs. minified source. Close gh-1147.
2013-02-07 15:16:28 -05:00
Dave Methvin
58cd84f9d5
Fix #13316 . Use minified version in unit testing.
2013-01-26 10:48:10 -05:00
timmywil
37ffb29d37
Relativize all urls pertaining to dist/jquery.js so users can run their server from any file location; Make sure Sizzle is available for its tests in testrunner.
2012-06-04 18:04:11 -04:00
Rick Waldron
7c23b77af2
Strips IIFEs from modules; Always require built jQuery for tests.
2012-06-04 12:48:18 -04:00
Trey Hunner
f1dcaad097
Fix indentation in /speed and /test dirs, closes gh-780.
2012-05-18 13:28:50 -04:00
Dave Methvin
c746f79cc0
Fix #10878 . Clear oldIE special change/submit flags on a clone.
2012-01-28 16:46:52 -05:00
Mike Sherov
dd900460ac
Fix #10902 . DRY up the ways to include src files in tests.
2012-01-11 21:35:13 -05:00
Dave Methvin
80797f5805
Fix #10798 . Don't re-bubble trigger()ed events in IE.
...
Since .trigger() already bubbles the event, we don't have to work around the non-bubbling IE events for that case.
2011-11-15 21:06:53 -05:00
Dave Methvin
b85f222df5
Don't fire change on an already-selected radio.
...
Thanks to Brandon Wallace (@bman654) for his code review. Also tweaks delegatetest.html output.
2011-09-20 22:18:34 -04:00
Dave Methvin
6ece8f138f
Revert "Fix #6593 . Don't trigger change
event twice when simulating it on IE." Add inline handler monitor to delegatetest.html so we can see it fail.
...
This reverts commit e77686495b6e34938575c9c0fe978cb4a0be6f05.
2011-09-19 15:42:32 -04:00
Dave Methvin
30249ab572
Improve delegation/change tests to display event firing order and duplicate events.
2011-09-19 15:42:32 -04:00
Dave Methvin
8ba5010ac2
Split out mouse hover/enter/leave tests into a separate file and add several more scenarios.
2011-09-19 15:42:31 -04:00
John Resig
c42360b5be
More formatting tweaking.
2011-05-10 12:57:55 -04:00
John Resig
1ec003f10c
Fix tabs in delegate test.
2011-05-10 12:43:34 -04:00
John Resig
419b5e5e2a
Make sure that mouseenter/mouseleave fire on the correct element when doing delegation. Fixes #9069 .
2011-05-10 11:49:32 -04:00
Dan Heberden
47abe5e1da
Bug #6911 - Prevent action on disabled elements, both triggering and bound via .live()
2011-02-18 10:09:07 -08:00
wycats
f4add19759
So embarrassing :(
2011-01-14 12:46:22 -05:00
wycats
3716f2d041
Overwrite CRLF with LF
2011-01-14 10:39:06 -05:00
Colin Snover
3e0cc81504
Clean trailing whitespace from all files.
2010-12-30 00:34:48 -06:00
Henri Wiechers
4190059c76
Convert test/delegatetest.html to use lf line endings.
2010-11-12 07:42:53 +02:00
jeresig
467063a2e2
When binding a change directly to a file input just passthrough to the normal bind. A temporary fix for #5997 , needs more investigation.
2010-02-13 04:40:26 -05:00
Matt Curry
f6ec9d54d1
Select (with a selected) fired change on first focus in IE. Fixes #5869 .
2010-01-23 12:52:32 -05:00
Irae Brasil
01f72026ec
Added support for multiple live event handlers, live hover, and live focus/blur (mapped to focusin/focusout). Fixes #5804 , #5801 , #5852 .
2010-01-23 11:56:24 -05:00
Jörn Zaefferer
03481a52c7
Stop trying to emulate the focus/blur event in IE, doesn't work as one might expect, anyway. Instead, implement the focusin/focusout events in all other browsers - which creates a much better parity across all browsers. Uses event capturing instead of bubbling to make it happen. Thanks to Alexander for the recommendation and to Joern Zaefferer for the original focus/blur delegation code.
2009-12-21 16:10:21 -05:00
Alexander Farkas
5dc6b7ce34
Used the patch from Alexander as the basis for a rewrite of the IE change event logic. Now has full parity with the regular change event in other browsers: Works with regular bind, works better with multiple selects, works as a regular change event (note test suite changes), works with readonly/disabled inputs, and much more. The original patch had a number of problems, including firing the change event too many times, not bubblinb properly, and not handling clicks on multi-selects properly - that should all be fixed now. Thanks Alexander for the patch pushing in the right direction.
2009-12-21 15:32:32 -05:00
jeresig
d7a00234ab
Make sure we use instead of in the delegate test.
2009-12-21 12:54:39 -05:00
Justin Meyer
d42afd0f65
Adding in support for bubbling submit and change events, thanks to the patch by Justin Meyer. Includes a delegation test suite for manually testing to see if the events work as intended.
2009-12-04 11:28:50 -05:00