You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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>`;
The text was updated successfully, but these errors were encountered:
Every image embedded in a tweet has the following text as an alternative text:
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
tweetback/src/twitter.js
Line 157 in c386e70
The text was updated successfully, but these errors were encountered: