jquery/test/unit
Michał Gołębiowski-Owczarek 754108fbbf
Event: Make trigger(focus/blur/click) work with native handlers
In `leverageNative`, instead of calling `event.stopImmediatePropagation()`
which would abort both native & jQuery handlers, set the wrapper's
`isImmediatePropagationStopped` property to a function returning `true`.
Since for each element + type pair jQuery attaches only one native handler,
there is also only one wrapper jQuery event so this achieves the goal:
on the target element jQuery handlers don't fire but native ones do.

Unfortunately, this workaround doesn't work for handlers on ancestors
- since the native event is re-wrapped by a jQuery one on each level of
the propagation, the only way to stop it for jQuery was to stop it for
everyone via native `stopPropagation()`. This is not a problem for
`focus`/`blur` which don't bubble, but it does also stop `click` on
checkboxes and radios. We accept this limitation.

Fixes gh-5015
Closes gh-5228

(cherry picked from commit 6ad3651dbf)
2023-03-27 21:47:24 +02:00
..
ajax.js Tests: Add tests for arary data in ajax 2023-03-21 00:36:51 +01:00
animation.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
attributes.js Selector: Inline Sizzle into the selector module: 3.x version (#5113) 2022-12-14 01:41:31 +01:00
basic.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
callbacks.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
core.js Selector: Inline Sizzle into the selector module: 3.x version (#5113) 2022-12-14 01:41:31 +01:00
css.js Tests: Fix selector tests in Chrome 2023-01-24 11:51:57 +01:00
data.js Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
deferred.js Tests: Skip jQuery.Deferred.exceptionHook tests in IE 9 2023-03-15 12:21:54 +01:00
deprecated.js Tests: Skip jQuery.Deferred.exceptionHook tests in IE 9 2023-03-15 12:21:54 +01:00
dimensions.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
effects.js Selector: Inline Sizzle into the selector module: 3.x version (#5113) 2022-12-14 01:41:31 +01:00
event.js Event: Make trigger(focus/blur/click) work with native handlers 2023-03-27 21:47:24 +02:00
exports.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
manipulation.js Selector: Inline Sizzle into the selector module: 3.x version (#5113) 2022-12-14 01:41:31 +01:00
offset.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
queue.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
ready.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
selector.js Tests: Fix selector tests in Chrome 2023-01-24 11:51:57 +01:00
serialize.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
support.js Event: Simulate focus/blur in IE via focusin/focusout (3.x version) 2023-03-27 21:24:42 +02:00
traversing.js Selector: Inline Sizzle into the selector module: 3.x version (#5113) 2022-12-14 01:41:31 +01:00
tween.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
wrap.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00