[planet-web] [PATCH] Allow 'iframe' tag; allow 'frameborder' and 'allowfullscreen'



commit 2cc3226f1de1e2a157bcb81f56b19c793c1680d2
Author: Pranav Kant <pranavk gnome org>
Date:   Thu Aug 20 11:05:59 2015 +0200

    [PATCH] Allow 'iframe' tag; allow 'frameborder' and 'allowfullscreen'

 planet/vendor/html5lib/sanitizer.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/planet/vendor/html5lib/sanitizer.py b/planet/vendor/html5lib/sanitizer.py
index 5ac43e4..8aeb807 100644
--- a/planet/vendor/html5lib/sanitizer.py
+++ b/planet/vendor/html5lib/sanitizer.py
@@ -13,7 +13,7 @@ class HTMLSanitizerMixin(object):
         'command', 'datagrid', 'datalist', 'dd', 'del', 'details', 'dfn',
         'dialog', 'dir', 'div', 'dl', 'dt', 'em', 'event-source', 'fieldset',
         'figure', 'footer', 'font', 'form', 'header', 'h1', 'h2', 'h3', 'h4',
-        'h5', 'h6', 'hr', 'i', 'img', 'input', 'ins', 'keygen', 'kbd',
+        'h5', 'h6', 'hr', 'i', 'iframe', 'img', 'input', 'ins', 'keygen', 'kbd',
         'label', 'legend', 'li', 'm', 'map', 'menu', 'meter', 'multicol',
         'nav', 'nextid', 'ol', 'output', 'optgroup', 'option', 'p', 'pre',
         'progress', 'q', 's', 'samp', 'section', 'select', 'small', 'sound',
@@ -35,7 +35,7 @@ class HTMLSanitizerMixin(object):
         'set', 'stop', 'svg', 'switch', 'text', 'title', 'tspan', 'use']
         
     acceptable_attributes = ['abbr', 'accept', 'accept-charset', 'accesskey',
-        'action', 'align', 'alt', 'autocomplete', 'autofocus', 'axis',
+        'action', 'align', 'allowfullscreen', 'alt', 'autocomplete', 'autofocus', 'axis',
         'background', 'balance', 'bgcolor', 'bgproperties', 'border',
         'bordercolor', 'bordercolordark', 'bordercolorlight', 'bottompadding',
         'cellpadding', 'cellspacing', 'ch', 'challenge', 'char', 'charoff',
@@ -43,7 +43,7 @@ class HTMLSanitizerMixin(object):
         'cols', 'colspan', 'compact', 'contenteditable', 'controls', 'coords',
         'data', 'datafld', 'datapagesize', 'datasrc', 'datetime', 'default',
         'delay', 'dir', 'disabled', 'draggable', 'dynsrc', 'enctype', 'end',
-        'face', 'for', 'form', 'frame', 'galleryimg', 'gutter', 'headers',
+        'face', 'for', 'form', 'frame', 'frameborder', 'galleryimg', 'gutter', 'headers',
         'height', 'hidefocus', 'hidden', 'high', 'href', 'hreflang', 'hspace',
         'icon', 'id', 'inputmode', 'ismap', 'keytype', 'label', 'leftspacing',
         'lang', 'list', 'longdesc', 'loop', 'loopcount', 'loopend',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]