dadler / thumbnail-zoom

Thumbnail Zoom Plus is a Firefox plug-in which shows a full-size image pop-up when you hover over a thumbnail or image link. When you hover your mouse over a thumbnail or an image or video link, the add-on displays the full-size image or video still-frame in a floating window. Supported sites include Amazon, Bing, Facebook, Flickr, Google, IMDb, LinkedIn, Netflix, Pinterest, Reddit, Tumblr, Twitter, Yandex.ru, YouTube, Wikipedia, WordPress, Yahoo Images, and many more.
30 stars 7 forks source link

Prefer 'title' to 'alt' in captions #61

Open dadler opened 12 years ago

dadler commented 12 years ago

Reddit titled their logo image like this: <a ... title="Congratulations to ..."> <img .... alt="Reddit.com " />

We ended up using "Reddit.com " as our caption but "Congratulations to ..." would have been better. If this pattern generalizes, we could have it ignore "alt" if it's able to find a "title" in an ancestor node (up to a certain depth, perhaps).

dadler commented 12 years ago

As of 2.2, TZP has site-specific logic which helps it find good captions. This change might still be a good idea but it's low priority.