wam: Remove icons' alt-text

Using the original paths given in WML as alt-text does not serve any
purpose other than breaking the layout when the page hasn't finished
loading and half the icons are overlong text. If anyone really needs
those they should use a data attribute instead. The alt attribute is for
accessibility, not for making programmers happy with themselves.
This commit is contained in:
Ignacio R. Morelle 2017-07-24 22:45:51 -04:00
parent 4ec6ef1734
commit ad2de1b918

View file

@ -180,8 +180,8 @@ Unit packs, terrain packs, music packs, etc. Usually a (perhaps optional) depend
else:
w(type)
w('</td>')
w(('<td class="addon-icon"><img alt="%s" src="%s" width="72" height="72"/>'
) % (icon, imgurl))
w(('<td class="addon-icon"><img alt="" src="%s" width="72" height="72"/>'
) % imgurl)
described = htmlescape(v("description", "(no description)"))
w('<div class="desc-tooltip"><b>%s</b><pre>%s</pre></div></td>' % (
name, described))