Hi,
I might have found a "bug":
This seems to happen in a setup with Babel.
If I deactivate the MagicPreview-Plugin, it looks good:
In this same setup, I had problems with saving resources,
that seem gone now and that might have also had to do with the plugin - but I can't confirm that, yet.
PHP 8.3
MODX Revolution 2.8.8-pl
Babel 3.5.2-pl
MagicPreview 1.5.1-pl