Skip to content

Commit 08d61cb

Browse files
committed
Set alt tag to some value to avoid html errors.
1 parent 199ff10 commit 08d61cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/DasBlog.Web.UI/TagHelpers/Comments/CommentGravatarImageTagHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
3030
dasBlogSettings.SiteConfiguration.CommentsGravatarRating, dasBlogSettings.SiteConfiguration.CommentsGravatarSize,
3131
dasBlogSettings.SiteConfiguration.CommentsGravatarNoImgPath));
3232

33+
output.Attributes.SetAttribute("alt", "gravatar");
34+
3335
var style = "dbc-comment-gravatar";
3436

3537
if (!string.IsNullOrEmpty(Css))

0 commit comments

Comments
 (0)