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

Patrick Broens patrick at patrickbroens.nl
Mon Aug 8 14:41:34 CEST 2011


Thomas Deinhamer has added a comment to the issue on Forge [1]. Because
I like to discuss this here, I'm moving over his comments to this
mailing list:

There's also another solution which I'm using in hype_html5:

<snip>

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

</snip>

Advantage: There can be an image link or a lightbox/enlarged version
additionally to a linked caption.

Another solution would be to
a.) link the longdesc-url on the image itself only if there's no link
yet, otherwise
b.) link the caption, if available.

But I think that's to confusing.

Then he commented another time:
One argument for the mentioned solution would be that linking the
caption to a "longer" description makes good sense in terms of semantic,
I guess.

[1] http://forge.typo3.org/issues/28752


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