[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form -
widget.py:1.62
Garrett Smith
garrett at mojave-corp.com
Tue Jan 20 13:56:32 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv3921/src/zope/app/browser/form
Modified Files:
widget.py
Log Message:
Replaced use of 'acronym' with 'span' for use in tooltips. The tooltips
implementation is still not perfect as browsers handle the 'title' attr of span
differently, though for most this will work.
=== Zope3/src/zope/app/browser/form/widget.py 1.61 => 1.62 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.61 Fri Jan 16 08:38:18 2004
+++ Zope3/src/zope/app/browser/form/widget.py Tue Jan 20 13:56:32 2004
@@ -313,10 +313,8 @@
return self.hidden()
def _tooltip(self, txt, description):
- # TODO: Use a JavaScript tooltip instead of an abuse of the
- # acronym HTML tag.
if description:
- return '<acronym title="%s">%s</acronym>' % (
+ return '<span title="%s">%s</span>' % (
cgi.escape(description, quote=1), txt
)
else:
More information about the Zope3-Checkins
mailing list