[TYPO3-core] RFC: bugfix #6682

Ingmar Schlecht ingmar at typo3.org
Sat Nov 10 12:05:29 CET 2007


Adding the empty alt-attribute was done intentionally to always have
valid XHTML.

Could you rewrite your patch so it only skips adding an alt-text when
there's one in 'params' already?

cheers
Ingmar


Helmut Hummel schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=6682
> 
> Branches:
> TYPO3_4-1 & trunk
> 
> Problem:
> If you want to use your own alt parameter for GMENU images, you need to
> set them with imgParams and set disableAltText.
> Unfortunatly then the alt is renderded two times, because it is only
> cleared, but not removed completly.
> 
> Not valid XHTML is rendered:
> <img .... alt="" alt="German" />
> 
> Solution:
> Remove the whole alt param instead of just clearing it
> 
> Comment:
> config.xhtml_cleaning = all fixes this issue, but nevertheless
> disableAltText = 1 behaviour is wrong.
> The tsref says:
> "If set, the alt-parameter of the images are not set. You can do it
> manually by 'imgParams' "
> 
> Regards Helmut
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list