Screen readers should ignore the image attached to "documents/image links.
I would like to "Nullify" the "title" attribute.

<img class="file-icon" alt="" title="application/pdf" src="/modules/file/icons/application-pdf.png">
Sorry if this is just dense or misfiled!

Here's the Accessibility issue:

Using null alt text and no title attribute on img elements for images that AT (assistive Technologies) should ignore

The purpose of this technique is to show how images can be marked so that they can be ignored by Assistive Technology.
If no title attribute is used, and the alt text is set to null (i.e. alt="") it indicates to assistive technology that the image can be safely ignored.
Note: Have a "null" alt attribute is not the same as having no alt attribute.

Procedure

For each image that should be ignored:

- Check that title attribute is either absent or empty.
- Check that alt attribute is present and empty.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgjohnson created an issue. See original summary.

fgjohnson@lojoh.ca’s picture

Issue summary: View changes
fgjohnson@lojoh.ca’s picture

Title: alt and title » Accessibility for alt and title attributes
Issue summary: View changes
joseph.olstad’s picture

Sounds reasonable. Patch?

joseph.olstad’s picture

Version: 7.x-2.0-rc3 » 7.x-2.x-dev
Category: Support request » Feature request
Status: Active » Needs work
joseph.olstad’s picture

fgjohnson@lojoh.ca’s picture

Interesting discussion.

To prevent the title tag from acquiring the mime type "title" attribute; I created a patch on Core / file / file.module.

See any problems with this?
Other than a patch of Core? :-)

Chris Matthews’s picture

Status: Needs work » Closed (outdated)

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team