Bug 528117 - html validator for img-req-alt needs to allow for alt=""
Summary: html validator for img-req-alt needs to allow for alt=""
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 17.0   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2017-12-04 14:16 EST by Carolyn MacLeod CLA
Modified: 2017-12-04 14:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2017-12-04 14:16:58 EST
Image alt text is allowed to be set to the empty string, i.e.
   <img src="only-for-show.png" alt=""></img>

alt="" tells accessible technology like screen readers that the image is purely for presentation, so ignore it.

So alt="" should not flag a validation error.
The value must be a string.
Comment 1 Eclipse Genie CLA 2017-12-04 14:21:52 EST
GitHub Pull Request 284 created by [carmacleod]
https://github.com/eclipse/orion.client/pull/284
Comment 2 Carolyn MacLeod CLA 2017-12-04 14:23:16 EST
Fixed with PR in comment 1.