Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't not have an alt text #21

Closed
ItsEthanH opened this issue Aug 16, 2023 · 2 comments
Closed

Can't not have an alt text #21

ItsEthanH opened this issue Aug 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ItsEthanH
Copy link

Hello!

First off - amazing plugin. No other gives such fine-grained control over the image output while also being so easy to use.

However, the only thing I haven't been able to do is to pass a value on the img tag to get an alt="" to render.

There are some valid reasons for this - decorative or background images don't need alt text. I've tried passing alt="", alt=" " and looked through the docs for a data- attribute, but all methods still give me validation errors.

Ideally, I'd be able to use a data- attribute or pass alt="" and have alt="" returned (the latter returns alt on it's own, which Google doesn't like).

Let me know if I can provide more info :)

@saneef
Copy link
Owner

saneef commented Aug 17, 2023

Look like a bug.

Thanks for reporting.

Will work on it soon.

@saneef saneef added the bug Something isn't working label Aug 17, 2023
@saneef saneef closed this as completed in 848e8eb Aug 17, 2023
@saneef
Copy link
Owner

saneef commented Aug 17, 2023

This is fixed in v4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants