FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

media.image viewhelper should generate empty alt attributes #1677

Closed akiessling closed 2 years ago

akiessling commented 4 years ago

The media.image viewhelper currently does not generate an alt attribute (empty) if the provided string is empty. This behaviour is different to the TYPO3 core viewhelper to generate an image tag.

1281 already asked for this but got closed. As @NamelessCoder also stated, the output should be an empty alt attribute.

Not every image requires an alt attribute with a "describing" text content, you can also have images that are only used for decoration or enhance text that is already present. See also https://www.w3.org/WAI/tutorials/images/decorative/ for more examples.