[BUGFIX] Add img longdescUrl only if available 77/44577/2
authorBenjamin Mack <benni@typo3.org>
Fri, 6 Nov 2015 12:09:06 +0000 (13:09 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 6 Nov 2015 13:10:55 +0000 (14:10 +0100)
commit8e93a19809ae16f05ee3e068599d31607198f49e
tree6fa37838e4533710d98419e7fecd8f17e5269d2b
parent07fb93a458cd160c5e0b6d6cfcd079b4c3631e3c
[BUGFIX] Add img longdescUrl only if available

According to the W3C standard (http://www.w3.org/TR/html-longdesc/#implementation),
longDesc should only be added if the attribute value is not empty.

The change adds an additional check to do so.

Resolves: #70685
Releases: master, 6.2
Change-Id: I4f61e61f04de81f881becee871edcc15d77deecd
Reviewed-on: https://review.typo3.org/44577
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php