[uf-discuss] Re: Minimisation of figure

Tim White tjameswhite at gmail.com
Sat Mar 22 06:27:49 PST 2008


On Sat, Mar 22, 2008 at 4:06 AM,
> Sarven Capadisli wrote:
>
>  > Hence, I propose:
>  >
>  > "If the "legend" class is found on the same element as the "image"
>  > class (or the image inferred by the previous rule), then the contents
>  > of the title attribute MUST be used as the legend." [1]
>  >
>  > should be changed from *title* to *alt*.
>

Toby A Inkster <mail at tobyinkster.co.uk> replied:
>  The reason for choosing @title over @alt for this purpose is two-fold:
>
>  1. The purpose of alternative text and legends differ. Alternative
>  text is meant to be shown when the image cannot be shown -- for
>  example, the resource is unavailable, image loading is disabled, or
>  the browser is not capable of displaying the image format. The legend
>  is meant to be visible alongside the image. Thus the semantics of
>  @alt and legend differ.
>
>  2. The principles <http://microformats.org/wiki/principles> state
>  "visible data is much better for humans than invisible metadata". For
>  most people (using modern graphical browsers, with image loading
>  enabled), @title is more visible than @alt, the former of which only
>  needs a mouse-over to see the tool tip, whereas the latter requires
>  view-source.

I agree with Toby. What about modifying the rule to account for both:

If the "legend" class is found on the same element as the "image"
class (or the image inferred by the previous rule), then the contents
of the title attribute MUST be used as the legend. <new>If the title
attribute is missing or empty, the alt attribute MAY be used.</new>.


Tim White


More information about the microformats-discuss mailing list