Automattic / Automattic/jetpack
WCAG: Remove 'Tiled Gallery' image title attribute if the alt attribute is empty
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
As per http://www.w3.org/TR/WCAG20-TECHS/H67.html the title attribute should be absent if the image has no alt attribute to ensure that screen readers can ignore the image(s).
Issue raised when using Total Validator Pro during local development. My PR successfully resolves the issue and ensures the markup passes validation.
Contributor guide
Research direction
No file or test is named in the issue. Start by locating the Tiled Gallery markup that emits the image title attribute, then compare its output for an empty alt attribute with WCAG H67 and validate the result using Total Validator Pro; done means the title attribute is absent and the markup passes validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- accessibility
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100