jquery/test/unit
Michał Gołębiowski-Owczarek f36f6abbb3 Event: Only attach events to objects that accept data - for real
There was a check in jQuery.event.add that was supposed to make it a noop
for objects that don't accept data like text or comment nodes. The problem was
the check was incorrect: it assumed `dataPriv.get( elem )` returns a falsy
value for an `elem` that doesn't accept data but that's not the case - we get
an empty object then. The check was changed to use `acceptData` directly.

(cherry picked from d5c505e35d)

Fixes gh-4397
Closes gh-4558
2019-12-09 19:53:17 +01:00
..
ajax.js Tests: Don't test synchronous XHR on unload in Chrome 2019-10-28 20:27:49 +01:00
animation.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
attributes.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
basic.js Core: Deprecate jQuery.trim 2019-09-26 01:00:55 +02:00
callbacks.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
core.js Core: Deprecate jQuery.trim 2019-09-26 01:00:55 +02:00
css.js CSS: Workaround buggy getComputedStyle on table rows in IE/Edge 2019-10-14 18:34:06 +02:00
data.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
deferred.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
deprecated.js Core: Deprecate jQuery.trim 2019-09-26 01:00:55 +02:00
dimensions.js Tests: Skip a "width/height on a table row with phantom borders" test in Firefox 2019-10-28 20:38:33 +01:00
effects.js Core: Make isAttached work with iOS 10.0-10.2 2019-04-29 19:54:12 +02:00
event.js Event: Only attach events to objects that accept data - for real 2019-12-09 19:53:17 +01:00
exports.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
manipulation.js Core: Preserve CSP nonce on scripts with src attribute in DOM manipulation 2019-03-25 18:14:24 +01:00
offset.js Tests: Fix offset fractions tests in Chrome for Android 2019-09-24 00:58:53 +02:00
queue.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
ready.js Tests: move readywait to an iframe test 2017-03-20 11:37:15 -04:00
selector.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
serialize.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
support.js CSS: Workaround buggy getComputedStyle on table rows in IE/Edge 2019-10-14 18:34:06 +02:00
traversing.js Traversing: Fix contents() on <object>s with children 2019-05-06 21:07:53 +02:00
tween.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
wrap.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00