[uilib] allow canvas tags in the html cleaner stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 05 Feb 2014 15:50:36 +0100
branchstable
changeset 9524 c4581bc582e1
parent 9523 cd5738fc440f
child 9525 8f3e963501e2
[uilib] allow canvas tags in the html cleaner Used by the iprogress cube. Closes #3524254.
uilib.py
--- a/uilib.py	Wed Feb 05 16:34:21 2014 +0100
+++ b/uilib.py	Wed Feb 05 15:50:36 2014 +0100
@@ -215,7 +215,7 @@
 
 ALLOWED_TAGS = (defs.general_block_tags | defs.list_tags | defs.table_tags |
                 defs.phrase_tags | defs.font_style_tags |
-                set(('span', 'a', 'br', 'img', 'map', 'area', 'sub', 'sup'))
+                set(('span', 'a', 'br', 'img', 'map', 'area', 'sub', 'sup', 'canvas'))
                 )
 
 CLEANER = clean.Cleaner(allow_tags=ALLOWED_TAGS, remove_unknown_tags=False,