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

Every image has "oh my god twitter doesn’t include alt text from images in their API" as alt text #92

Open
hteumeuleu opened this issue Oct 15, 2023 · 0 comments

Comments

@hteumeuleu
Copy link

Every image embedded in a tweet has the following text as an alternative text:

oh my god twitter doesn’t include alt text from images in their API

While I get that this is a funny mention to an earlier limitation of the API, I don't think this is useful nor appreciated by people who need alt text. A better option in my opinion would be to have an empty alt attribute.

Related to #3

return `<a href="${imgRef.url}"><img src="${imgRef.url}" width="${imgRef.width}" height="${imgRef.height}" alt="${escapeAttribute(alt) || "oh my god twitter doesn’t include alt text from images in their API"}" class="tweet-media u-featured" onerror="fallbackMedia(this)" loading="lazy" decoding="async"></a>`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant