I've read the book page for "printing the description of ImageField", but I don't understand why all the images (with a description) don't use that in the ALT or TITLE attribute..

Maybe ImageField should provide something to correctly place the description data inside the IMG attributes.

Regards

Comments

quicksketch’s picture

Unlike "alt" and "title", the "description" text doesn't have any meaning to img tags. The description field is intended for use with FileFields (which don't have alt or title). I wish it weren't available at all for images, but its too late to change it now.

thepanz’s picture

Issue tags: +Accessibility

You're right! :)
But the "Image£ formatter should use the 'description' (FileField-data) for rendering the ALT or TITLE attribute.

It's for accessibility reasons that IMG should have alt/title attributes.

Any thoughts?

quicksketch’s picture

Take a look at #193887: Accessibility enhancements. There are many reasons for not using "description" for alt and title text. The best one is that alt and title text have different purposes. If you want to set alt and title text, you should set them directly not use "description" which is ambiguous from the web standpoint.

quicksketch’s picture

Status: Active » Closed (won't fix)

This issue sounds like a duplicate of the "won't fix" issue #310288: Use description text for alt and title attributes. Please reopen if I misunderstood the request, but it sounds the same to me.