[TYPO3-mvc] ImageViewHelper does not create mandatory alt-attribute if it is empty, patch on forge #9151

Franz Ripfel typo3 at abezet.de
Mon Aug 9 17:38:46 CEST 2010


Hi,

This is an SVN patch request.
Type: Bugfix

Bugtracker reference:
http://forge.typo3.org/issues/9151

Problem:
The alt-attribute is mandatory for image-tags, empty alt-attributes are  
quite common, i.e. if your image is just there for layout purposes.  
Currently the alt-attribute is only rendered if it is not empty.
The title-attribute however is always rendered, even if title and alt are  
empty.
IMHO the alt-attribute should always be rendered, is is an mandatory  
element in the view-helper anyway.
The title tag should only be rendered if not empty (filling it with the  
content of the alt-attribute is nevertheless a good idea).



keep rocking!
Franz


More information about the TYPO3-project-typo3v4mvc mailing list