Skip to content

Commit

Permalink
do not use title as alt attribute content
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed May 24, 2022
1 parent 8dbc336 commit 17157fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/outputfilters/filters/resolveuid_and_caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __call__(self, data):
title = safe_unicode(aq_acquire(fullimage, 'Title')())
if not attributes.get('alt'):
# XXX alt attribute contains *alternate* text
attributes['alt'] = description or title
attributes['alt'] = description or ""
if 'title' not in attributes:
attributes['title'] = title

Expand Down

0 comments on commit 17157fd

Please sign in to comment.