pinterest / widgets

JavaScript widgets, including the Pin It button.
Other
211 stars 88 forks source link

Pin Description not populated from data-pin-description, Firefox/Safari #73

Closed jknopp closed 7 years ago

jknopp commented 7 years ago

Hello, I'm using the //assets.pinterest.com/js/pinit.js widget, and I've found that when pinning, the pre-populated "Description" value is pulling in from the "alt" attribute on the image, and ignoring my data-pin-description attribute.

How can I ensure that the pre-populated description uses the data-pin-description text?

Browsers where this has been reproduced: Safari - 9.0.3 Firefox - 49.0.2 & 50.0 Chrome and IE are working as expected.

Example tag: < img src="/product_images/475x300/FreeBP-02.jpg" alt="Freestyle Pump" class="pinterest-image" data-pin-description="Pinterest copy. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eleifend condimentum posuere. Sed condimentum efficitur.">

kentbrew commented 7 years ago

You shouldn't see different results by browser. Please check that you're not actually pinning using the browser extension for some cases?