Skip to content

Commit

Permalink
Added the missing alt attribute for the gravatar
Browse files Browse the repository at this point in the history
A missing alt text is a WCAG 2.0 failure
  • Loading branch information
LaurentGoderre committed Apr 7, 2016
1 parent e55dfca commit aec9178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def gravatar(email_hash, size=100, default=None):
default = urllib.quote(default, safe='')

return literal('''<img src="//gravatar.com/avatar/%s?s=%d&amp;d=%s"
class="gravatar" width="%s" height="%s" />'''
class="gravatar" width="%s" height="%s" alt="" />'''
% (email_hash, size, default, size, size)
)

Expand Down

0 comments on commit aec9178

Please sign in to comment.