Skip to content
Snippets Groups Projects
Commit b4c06428 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Anja Leichsenring
Browse files

[BUGFIX] Respect empty alt attribute in ImageViewhelper

The ImageViewhelper does by default add the
`alternative` property as `alt` attribute to
the img tag if no non-empty string is set.

However, there might be valid use cases where
an empty `alt` attribute should be set for such
image - even if the property exists. Such case
is e.g. a thumbnail of such image.

The ImageViewhelper does therefore now render
an empty `alt` attribute if the `alt` argument
is explicitly set to an empty string.

Resolves: #102739
Releases: main, 12.4
Change-Id: Id197c3d2f839fbbc37744a2ae356c8e3ae35f0c4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82251


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent b32e985b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment