[or-cvs] r14669: fix alt tags for HTML 4.01 validity (blossom/trunk)

goodell at seul.org goodell at seul.org
Mon May 19 06:28:28 UTC 2008


Author: goodell
Date: 2008-05-19 02:28:28 -0400 (Mon, 19 May 2008)
New Revision: 14669

Modified:
   blossom/trunk/exit.py
Log:
fix alt tags for HTML 4.01 validity


Modified: blossom/trunk/exit.py
===================================================================
--- blossom/trunk/exit.py	2008-05-19 05:07:26 UTC (rev 14668)
+++ blossom/trunk/exit.py	2008-05-19 06:28:28 UTC (rev 14669)
@@ -286,8 +286,8 @@
     for property in ["Stable", "Guard", "Authority", "Disputed"]:
         property_str = property
         if rtr[r]["status"].has_key(property):
-            extra = "<acronym title=\"%s\"><img src=\"%s/%s.png\"></acronym>" \
-                % (property_str, URL_ICONS, property)
+            extra = "<acronym title=\"%s\"><img src=\"%s/%s.png\" alt=\"%s\"></acronym>" \
+                % (property_str, URL_ICONS, property, property)
 
     if rtr[r]["orport"] == 443:
         c_orport = "c5"
@@ -362,9 +362,9 @@
     uptime
 )
     rtr[r]["entry"] = """<tr><td>
-    <acronym title="%s"><img src="%s/%s.gif"></acronym>
+    <acronym title="%s"><img src="%s/%s.gif" alt="%s"></acronym>
 </td><td>
-    <acronym title="%s"><img src="%s/%s.gif"></acronym>
+    <acronym title="%s"><img src="%s/%s.gif" alt="%s"></acronym>
 </td><td class="%s">
     <tt>&nbsp;<a class="%s" href="http://%s/tor/server/d/%s">%s</a></tt>
 </td><td class="%s">
@@ -372,15 +372,17 @@
 </td><td>
     %s
 </td><td>
-    <acronym title="%s"><img src="%s/%s.png"></acronym>
+    <acronym title="%s"><img src="%s/%s.png" alt="%s"></acronym>
 </td>%s
 """ % (
     rtr[r]["country"],
     URL_FLAGS,
     addr[a]["cc"].lower(),
+    addr[a]["cc"].lower(),
     s_bandwidth,
     URL_ICONS,
     rtr[r]["bwsymbol"],
+    rtr[r]["bwsymbol"],
     rtr[r]["tdclass"],
     rtr[r]["aclass"],
     DIR_HOST,
@@ -395,6 +397,7 @@
     rtr[r]["platform"],
     URL_OSICONS,
     s_platform,
+    s_platform,
     extended_content
 )
 



More information about the tor-commits mailing list