louisremi / background-size-polyfill

Adds support for background-size "cover" and "contain" to IE8
http://louisremi.github.com/background-size-polyfill/
MIT License
1.26k stars 359 forks source link

Add empty alt attribute to generated image #4

Closed yatil closed 11 years ago

yatil commented 11 years ago

I’ve just skimmed the .htc code and it appears that the created img element has no alt attribute. That causes some screen readers to read the filename, which is awkward. Add an empty alt attribute fixes this.

louisremi commented 11 years ago

This is a valid concern. Would you be able and willing to fix this problem?

yatil commented 11 years ago

Sent a pull request, see Issue #5.