TYPO3 / Fluid

Fluid template rendering engine - Standalone version
GNU Lesser General Public License v3.0
152 stars 93 forks source link

[BUGFIX] Restore previous empty tag attribute behavior #940

Closed s2b closed 3 months ago

s2b commented 3 months ago

With Fluid 2.12, we introduced the ability to provide arbitrary ViewHelper arguments to TagBasedViewHelpers. Consequently, we deprecated the method registerTagAttribute(), which is no longer necessary due to the mentioned change.

However, the implementations differed until now: The previous implementation ignored empty strings for tag attributes, while the new implementation added such input as empty attribute to the resulting tag. We now check for empty strings and only add attributes to the tag if it's not an empty string.

This will be backported to Fluid 2.14.

s2b commented 3 months ago

Related TYPO3 Forge Issue: https://forge.typo3.org/issues/104490