What fresh hell is THIS now? - Patrick Lauke
adding alt text for good measure and it is accessible :ok_hand:
note: the aria-labelledby overrides the alt text unless you do this:
<figure> <img src="../../assets/img/juwelen/duitsland/beieren/zonnestraaltiara/beieren_zonnestraaltiara.jpg" class=”scaled” aria-labelledby=”fig-desc image" id="image" alt="some text"> <figcaption id="fig-desc"><small>© Sotheby's</small></figcaption> </figure>
i.e. reference the 'img' itself in the 'aria-labelledby'
also note that figcaption
labels the figure
element (in browsers that have implemented the mapping refer to http://www.html5accessibility.com/) This means that the figcaption
text will be repeated, if used a part of the accessible name of the img
.
[alastc] ah, one of the dangers of “Cool URLs never die”!
unfortunately W3C is exceedingly uncool with these things, with stale spec links everywhere :-(