xhtml fixes
authorsylvain.thenault@logilab.fr
Fri, 30 Jan 2009 17:25:11 +0100
changeset 536 781cd9fccbaa
parent 535 ad9ac2169089
child 546 9cafff0e0620
xhtml fixes
web/facet.py
web/views/boxes.py
--- a/web/facet.py	Fri Jan 30 17:24:53 2009 +0100
+++ b/web/facet.py	Fri Jan 30 17:25:11 2009 +0100
@@ -560,12 +560,14 @@
         if self.selected:
             cssclass = ' facetValueSelected'
             imgsrc = self.req.datadir_url + self.selected_img
+            imgalt = self.req._('selected')
         else:
             cssclass = ''
             imgsrc = self.req.datadir_url + self.unselected_img
+            imgalt = self.req._('not selected')
         self.w(u'<div class="facetValue facetCheckBox%s" cubicweb:value="%s">\n'
                % (cssclass, html_escape(unicode(self.value))))
-        self.w(u'<img src="%s" />&nbsp;' % imgsrc)
+        self.w(u'<img src="%s" alt="%s"/>&nbsp;' % (imgsrc, imgalt))
         self.w(u'<a href="javascript: {}">%s</a>' % html_escape(self.label))
         self.w(u'</div>')
 
--- a/web/views/boxes.py	Fri Jan 30 17:24:53 2009 +0100
+++ b/web/views/boxes.py	Fri Jan 30 17:25:11 2009 +0100
@@ -200,7 +200,7 @@
         urlgetter = self.vreg.select_component('rss_feed_url', self.req, self.rset)
         url = urlgetter.feed_url()
         rss = self.req.external_resource('RSS_LOGO')
-        self.w(u'<a href="%s"><img src="%s" border="0" /></a>\n' % (html_escape(url), rss))
+        self.w(u'<a href="%s"><img src="%s" alt="rss"/></a>\n' % (html_escape(url), rss))
 
 
 ## warning("schemabox ne marche plus pour le moment")