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

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Mon Aug 8 19:06:48 CEST 2011


Patrick Broens schrieb:
> The only way we can't provide a longdesc alternative is when there is
> already a link on an image and no caption. So, what to do with this?

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.

The image itself should either link to an
enlarged version (lightbox) or to an address.

<figure>
   <a href="#enlarged-version">
     <img />
   </a>
   <figcaption>
     <a href="#longdesc-url">caption</a>
   </figcaption>
</figure>

One thing to think about: If "imageTextSplit" is disabled
("global caption"), where the caption will be used for multiple
images, we also should take care of only using the first longdesc url
OR find a way of using multiple longdesc-urls, one for each image,
but still using a single caption for all the images.

Regards,
Thomas


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