By prudloff on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.5.x
Introduced in version:
11.5.0
Issue links:
Description:
The resetForm() jQuery function provided by the core/jquery.form library has been removed. There is no replacement.
jquery.form contained a potential cross-site scripting (XSS) vulnerability. Since Drupal Core did not use the function it was deleted. You must find a replacement if you are using it in your code. Because of the potential for XSS it is inadvisable to copy the deleted code as it existed in the Core library.
An example of obsolete JavaScript:
jQuery('#foo').resetForm()
Note that the core/jquery.form library is marked as internal and should not be used by contrib or custom code (see #3293156: core/jquery.form library deprecated).
Impacts:
Module developers