jquery/test/unit
ac-mmi 752e9119ab
Manipulation: Make jQuery.cleanData not skip elements during cleanup
When passing a result of `getElementByTagsName` to `jQuery.cleanData`, convert
it to an array first. Otherwise, a live NodeList is passed and if any of the
event cleanups remove the element itself, a collection is modified during the
iteration, making `jQuery.cleanData` skip cleanup for some elements.

Fixes gh-5214
Closes gh-5523

Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>

(cherry picked from commit 3cad5c435a)
2024-09-11 00:27:16 +02:00
..
ajax.js Build: upgrade dependencies, including eslint 9.4.0 and uglify 3.7.7 2024-06-15 09:10:59 -04:00
animation.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
attributes.js Tests: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04: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 Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
core.js Tests: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04:00
css.js Build: upgrade dependencies, including eslint 9.4.0 and uglify 3.7.7 2024-06-15 09:10:59 -04:00
data.js Build: improve specificity of eslint config; add ecma versions 2024-06-10 09:01:53 -04:00
deferred.js Build: improve specificity of eslint config; add ecma versions 2024-06-10 09:01:53 -04:00
deprecated.js Tests: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04:00
dimensions.js Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00
effects.js Tests: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04:00
event.js Build: upgrade dependencies, including eslint 9.4.0 and uglify 3.7.7 2024-06-15 09:10:59 -04:00
exports.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
manipulation.js Manipulation: Make jQuery.cleanData not skip elements during cleanup 2024-09-11 00:27:16 +02:00
offset.js Tests: fix supportsScroll feature test in offset 2024-06-10 14:50:28 -04:00
queue.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04: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: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04:00
serialize.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
support.js CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version) 2024-06-03 18:15:39 +02:00
traversing.js Tests: replace dead links in qunit fixture; use https 2024-08-24 10:05:01 -04:00
tween.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
wrap.js Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00