Originally Photoswipe does not add alt attributes to the images inside the lightbox. The modified version does as some users have asked to get the caption as alt attribute as well.
However - the caption may also contain HTML code and this must not be used for the alt attribute. It also makes no sense to have that attribute there. Therefore it's better to remove it again.
Originally Photoswipe does not add
alt
attributes to the images inside the lightbox. The modified version does as some users have asked to get the caption asalt
attribute as well.However - the caption may also contain HTML code and this must not be used for the
alt
attribute. It also makes no sense to have that attribute there. Therefore it's better to remove it again.