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.
Comment | File | Size | Author |
---|---|---|---|
#7 | custom_null_alt_title_tag-file.module.patch | 714 bytes | fgjohnson@lojoh.ca |
pdf-icon.png | 11.59 KB | fgjohnson@lojoh.ca |
Comments
Comment #2
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedComment #3
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedComment #4
joseph.olstadSounds reasonable. Patch?
Comment #5
joseph.olstadComment #6
joseph.olstadThis might be related ? #1343022: Adding alt and title attributes from fields to image markup
Comment #7
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedInteresting 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? :-)
Comment #8
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedRecent 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