Add mandatory alt attributes to img tags
authorMagnus Hagander <magnus@hagander.net>
Sat, 18 Oct 2008 09:45:28 +0000 (09:45 +0000)
committerMagnus Hagander <magnus@hagander.net>
Sat, 18 Oct 2008 09:45:28 +0000 (09:45 +0000)
planethtml.py

index 3ca9c16563216db320f10fd6920aaf4d4371d7df..3e3afe47aa9cf4c66bb46607d4cd3c4293c3a089 100644 (file)
@@ -84,11 +84,11 @@ class PlanetHtml:
                        else:
                                self.str += feed[0]
                        self.str += """
-<a href="%s"><img border="0" src="http://www.postgresql.org/layout/images/ico_rss.png" /></a></li>""" % (feed[2]) 
+<a href="%s"><img border="0" src="http://www.postgresql.org/layout/images/ico_rss.png" alt="rss" /></a></li>""" % (feed[2]) 
                self.str += """   </ul>
     <div class="planetRightTitle">Feeds</div>
     <ul>
-     <li><a href="rss20.xml">Planet PostgreSQL</a>  <a href="rss20.xml"><img border="0" src="http://www.postgresql.org/layout/images/ico_rss.png"></a></li>
+     <li><a href="rss20.xml">Planet PostgreSQL</a>  <a href="rss20.xml"><img border="0" src="http://www.postgresql.org/layout/images/ico_rss.png" alt="rss"></a></li>
     </ul>
    </div>
 """