Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

extend react-a11y-image-has-alt: Img element with empty alt text must have absent or empty title attribute. #276

Closed
HamletDRC opened this issue Sep 27, 2016 · 0 comments
Labels
Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Domain: Accessibility Rules around accessibility verification, commonly react-a11y-*. Status: Accepting PRs Type: Rule Feature Adding a feature to an existing rule.
Milestone

Comments

@HamletDRC
Copy link
Member

This is possibly already implemented:

Ignored Image Support

Img element with empty alt text must have absent or empty title attribute.

"Image element (outside of a link) that is marked with an empty alt attribute (intending it to be ignored), but has a non-empty title attribute." http://www.w3.org/TR/WCAG20-TECHS/H67

@JoshuaKGoldberg JoshuaKGoldberg added Status: Accepting PRs Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Domain: Accessibility Rules around accessibility verification, commonly react-a11y-*. Type: Rule Feature Adding a feature to an existing rule. labels Jul 4, 2018
afifsohaili added a commit to afifsohaili/tslint-microsoft-contrib that referenced this issue Oct 10, 2018
* All images must have alt attribute.
* If the image is meant to be ignored, have a presentation role with an
empty alt attribute.
* If the image has an empty alt attribute but has a title attribute with
a value, it fails.
JoshuaKGoldberg pushed a commit that referenced this issue Oct 14, 2018
* All images must have alt attribute.
* If the image is meant to be ignored, have a presentation role with an
empty alt attribute.
* If the image has an empty alt attribute but has a title attribute with
a value, it fails.
@JoshuaKGoldberg JoshuaKGoldberg added this to the 6.0.0 milestone Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Domain: Accessibility Rules around accessibility verification, commonly react-a11y-*. Status: Accepting PRs Type: Rule Feature Adding a feature to an existing rule.
Projects
None yet
Development

No branches or pull requests

2 participants