changeset 532:942f9b55773e

span macro: remove support for align attr as it is deprecated
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 22 Jun 2010 14:21:59 +0200
parents bd8e88710547
children 1f9926e7f5b5
files data/plugin/macro/span.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/span.py	Tue Jun 22 13:54:17 2010 +0200
+++ b/data/plugin/macro/span.py	Tue Jun 22 14:21:59 2010 +0200
@@ -2,10 +2,11 @@
 """
     MoinMoin - span generating macro
 
-    Supported attrs: css_class, id, lang, dir, title, align
+    Supported attrs: css_class, id, lang, dir, title
 
     Unsupported attrs: style - can contain javascript, XSS danger
                        event attrs - same reason
+                       align - deprecated by the W3C (use css classes)
 
     Usage:
     <<span(red)>>some text contained in a span with css class red<<span>>
@@ -28,7 +29,8 @@
                lang=u'',
                dir=u'',
                title=u'',
-               align=u'',
+               # deprecated by W3C:
+               #align=u'',
                # dangerous, see docstring:
                #style=u'',
               ):
@@ -36,7 +38,8 @@
     for key, value in [
         ('css_class', css_class), ('id', id),
         ('lang', lang), ('dir', dir),
-        ('title', title), ('align', align),
+        ('title', title),
+        #('align', align),
         #('style', style),
         ]:
         if value: