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:
parent
4ec6ef1734
commit
ad2de1b918
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue