- Issue created by @daniel korte
I have reviewed the changes and confirmed that it correctly replaces the deprecated
$.trim()
function with JavaScript’s native.trim(),
which is fully compatible with jQuery 3.5+ and the modern browser environment used in Drupal 11. The change does not alter the core functionality, as.trim()
provides the same behavior as $.trim(), ensuring that the text value is properly trimmed before processing.After testing from the branch
3510732-.trim-is-not
, I tested the character counting functionality in text fields, and everything works as expected without any errors. The update does not introduce any regressions, as.trim()
is widely supported in modern JavaScript. Since the fix is correct and verified, I am moving this issue to RTBC.