When entering information for the rotating banner the "Description" field appears to be used to populate the alt and longdesc attributes of the img tags. It should be made more clear that this is where the alt text is set in the user interface. Also, this is not the correct usage of the longdesc attribute. The longdesc should always contain a URL to another page which describes the object to which it is attached, it is not a text field. See also: http://www.w3.org/TR/html401/struct/objects.html and http://www.w3.org/WAI/wcag-curric/sam3-0.htm

CommentFileSizeAuthor
#3 marinellli-longdesc-1182928-3.patch2.29 KBmavimo
#2 GIRL3.jpg8.22 KBjjsmith
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lioz’s picture

Status: Active » Needs review

Hi!
you are right
to solve the problem you can edit

1) marinelli_configure_cycle.js using -> var description = $(this).attr("alt");
2) marinelli_banner text.js using ->var desc = $('img.slide').attr("alt");
3) banners.inc removing 'longdesc' => t('@image_desc', array('@image_desc'=>$banner['image_description'])) line

jjsmith’s picture

FileSize
8.22 KB

Hi I have used longdesc only once on a website where I published flyers for an event. I had the text of the flyer on another page anyway, so I pointed longdesc to other-page.html#text. Though on other-page.html was a smaller image of the flyer, and that also pointed to #text. That seemed reasonable. What I didn't know then was that browsers or rather screenreaders fail to implement the mechanism to open longdescs properly, so I used it on a linked image. Thanks for sharing that. Essay Examples l Essay Sample

But the whole case reminds me of the alt-attribute. We have an attribute where people don't know how to use it properly. Also we have faulty browser implementations that lead people to misuse the attribute (as a tooltip). Is that reason enough to remove it from the specification, or shouldn't we rather educate developers and build pressure on browser and screenreader vendors? longdesc is obscure, but in certain cases it is very useful and less pain than adding a link. I would rather tell screenreader vendors to fix that behavior according to the specs than removing a reasonable element.

mavimo’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
2.29 KB

Patch

mgifford’s picture

Bump....

mgifford’s picture

Issue summary: View changes
Issue tags: +longdesc