Add aria-describedby to improve image/caption relationship
|Reported by:||joedolson||Owned by:||joedolson|
See also #27402, where we added aria-describedby to gallery output. Probably should have thought to deal with captioned images at the same time!
Currently, there's minimal semantic relationship between the caption and the image, and none that will reliably be recognized by assistive technology. In theory figure and figcaption should provide a relationship, but this doesn't have adequate support.
In the HTML mode, no relationship exists at all. In HTML mode, I have doubts about the method to add aria-describedby used in this patch; str_replace feels dirty, but it would be backwards-compatible, where adding aria-describedby to the img element at input would only effect future images. In HTML4 mode, the relationship has to be between the img and the description, not the container, as in the figure relationship.
Change History (8)
- Keywords needs-refresh added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
- Owner set to joedolson
- Status changed from new to assigned