jquery/test
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
..
data Tests: align mock.php with main branch (sans spacing diffs) 2024-08-24 10:05:01 -04:00
integration Event: Fix delegated radio events when arrow keys are used 2015-10-18 13:06:37 -04:00
node_smoke_tests Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
promises_aplus_adapters Release: migrate release process to release-it 2024-07-29 15:25:14 -04:00
runner Tests: Run tests in Edge in IE mode in GitHub Actions 2024-09-09 18:26:59 +02:00
unit Manipulation: Make jQuery.cleanData not skip elements during cleanup 2024-09-11 00:27:16 +02:00
delegatetest.html Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00
hovertest.html Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
index.html Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
jquery.js Build: improve specificity of eslint config; add ecma versions 2024-06-10 09:01:53 -04:00
middleware-mockserver.cjs Tests: replace express with basic Node server 2024-08-24 10:05:01 -04:00
networkerror.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
xhtml.php Added a way to run the test suite as an XHTML page. 2009-01-19 18:14:51 +00:00