Opened 5 years ago
Closed 5 years ago
#7536 closed defect (bug) (fixed)
Avatar alt isn't attribute-escaped, nor translated
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
In [8661] the avatar alt default value is Avatar and cannot be translated.
Also, if the avatar alt contains ' or tags, it will break the HTML code.
Attachments (2)
Change History (9)
nbachiyski — 5 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Giving every avatar a default alt text of "avatar" is very bad accesibility, I can't imagine anything more annoying to a screen reader.
http://en.wikipedia.org/wiki/Alt_attribute
"While the use of meaningful alt text is necessary to comply with accessibility standards, and is good practice, sometimes an image is used for purely decorative purposes. In this case, one should use an empty alt attribute (alt="")."
Replying to matt:
Giving every avatar a default alt text of "avatar" is very bad accesibility, I can't imagine anything more annoying to a screen reader.
Agree.
Although I introduced this for #7523 I agree with matt here that the default should be empty.
Having a page full of Avatars being read out would get a little frustrating when viewing comments.
- Resolution set to fixed
- Status changed from reopened to closed
comment:6
Speedboxer — 5 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
The phpdoc text needs to be changed to say the default is blank.

(In [9076]) Avatar alt fixes from nbachiyski. fixes #7536