[TYPO3-content-rendering] Image longdesc attribute in HTML5

Patrick Broens patrick at patrickbroens.nl
Tue Aug 9 09:03:52 CEST 2011


Hi,

On 8-8-11 19:06 , Thomas "Thasmo" Deinhamer wrote:
> I'd go for only linking a caption, if available,
> never link the image itself to a longdesc url.
> 
> So, only if a caption is set it would be linked
> to the longdesc-url, if set too.

Your comment actually made me rethink the whole situation and you're
right ;-)

It does not make sense to have a longdesc URL when there is not a short
description of the image, like a caption.

As I described in my previous posting, it might be wise to use the
"aria-describedby" attribute in the <img> tag, which points to the
caption link. The caption itself could be identified by
"aria-labelledby", but I'm uncertain about that. The caption itself
already points to the image.

Patrick


More information about the TYPO3-project-content-rendering mailing list