gulp-inline-css icon indicating copy to clipboard operation
gulp-inline-css copied to clipboard

Alt attribute being stripped

Open mark-making opened this issue 6 years ago • 1 comments
trafficstars

For img when an image is decorative, the best practise is to have an empty alt description like so:

<img width="10" height="40" src="../img.src" alt=""/>

When the document is generated via Jekyll, I get the output I expect above.

When it is ran through this plugin, it seems to be rewriting the alt tag.

<img width="10" height="40" src="../img.src" alt style="inlined styles">

Which is not the desired outcome.

mark-making avatar Feb 25 '19 16:02 mark-making

@mark-making, I have the same issue. I use a lot of plugins and it was hard to investigate that this plugin that shouldn't touch alt attributes, modifies them. Have you found a work-around for this issue besides finding all such attributes with regexp and fixing them back?

max-samusevich avatar Jan 03 '24 17:01 max-samusevich