#69817EXT:form - fatal at mail sending if label layout contains a label tag
Description
The default value for the label wrapping looks like this <label><labelvalue /><mandatory /><error /></label>. When overriding it on a global level with the following code the mail cannot be sent.
label = <label><labelvalue /><error /><mandatory /></label>
After submitting the form the following PHP error occurs:
#1: PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Form\View\Mail\Html\Element\AbstractElementView::replaceNodeWithFragment() must be an instance of DOMNode, null given, called in /vendor/typo3/cms/typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php on line 104 and defined in /vendor/typo3/cms/typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php line 220 (More information) TYPO3\CMS\Core\Error\Exception thrown in file /vendor/typo3/cms/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 107.