Skip to content

Commit 30108e7

Browse files
committed
make attribute generation consistent with the method
1 parent 60e3642 commit 30108e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plone/namedfile/scaling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@ def srcset(
780780
attributes["title"] = self.title
781781
elif title:
782782
attributes["title"] = title
783-
if alt is not _marker:
783+
if alt is _marker:
784+
attributes["alt"] = self.title
785+
else:
784786
attributes["alt"] = alt
785787

786788
if css_class is not None:

0 commit comments

Comments
 (0)