[treeview] replace span elements by div for xhtml conformance
authorJulien Jehannet <julien.jehannet@logilab.fr>
Fri, 23 Jan 2009 19:18:28 +0100
changeset 464 75d242975792
parent 463 1630b591cbfd
child 465 1158231e7360
[treeview] replace span elements by div for xhtml conformance
web/views/treeview.py
--- a/web/views/treeview.py	Fri Jan 16 20:06:52 2009 +0100
+++ b/web/views/treeview.py	Fri Jan 23 19:18:28 2009 +0100
@@ -58,10 +58,10 @@
     def cell_call(self, row, col):
         entity = self.entity(row, col)
         if ITree.is_implemented_by(entity.__class__) and not entity.is_leaf():
-            self.w(u'<span class="folder">%s</span>' % entity.view('oneline'))
+            self.w(u'<div class="folder">%s</div>' % entity.view('oneline'))
         else:
             # XXX define specific CSS classes according to mime types
-            self.w(u'<span class="file">%s</span>' % entity.view('oneline'))
+            self.w(u'<div class="file">%s</div>' % entity.view('oneline'))
 
 
 class DefaultTreeViewItemView(EntityView):