Add all deprecated HTML attributes to sanitizer whitelist #260

https://www.codehelp.co.uk/html/deprecated.html
This commit is contained in:
Ben Gotow 2017-12-20 10:23:17 -07:00
parent f5f32802c0
commit e34bcd2296
2 changed files with 13 additions and 2 deletions

View file

@ -52,6 +52,8 @@ const Preset = {
'b', 'b',
'i', 'i',
'em', 'em',
'u',
's',
'strong', 'strong',
'center', 'center',
'a', 'a',
@ -87,6 +89,7 @@ const Preset = {
'autocomplete', 'autocomplete',
'axis', 'axis',
'border', 'border',
'background',
'bgcolor', 'bgcolor',
'cellpadding', 'cellpadding',
'cellspacing', 'cellspacing',
@ -288,6 +291,7 @@ const Preset = {
'span', 'span',
'strong', 'strong',
'style', 'style',
'strike',
'sub', 'sub',
'summary', 'summary',
'sup', 'sup',
@ -321,6 +325,7 @@ const Preset = {
'autocomplete', 'autocomplete',
'axis', 'axis',
'border', 'border',
'background',
'bgcolor', 'bgcolor',
'cellpadding', 'cellpadding',
'cellspacing', 'cellspacing',
@ -330,12 +335,14 @@ const Preset = {
'checked', 'checked',
'classid', 'classid',
'classname', 'classname',
'color', 'clear',
'colspan', 'colspan',
'cols', 'cols',
'color',
'content', 'content',
'contextmenu', 'contextmenu',
'controls', 'controls',
'compact',
'coords', 'coords',
'data', 'data',
'datetime', 'datetime',
@ -362,6 +369,7 @@ const Preset = {
'hreflang', 'hreflang',
'htmlfor', 'htmlfor',
'httpequiv', 'httpequiv',
'hspace',
'icon', 'icon',
'id', 'id',
'label', 'label',
@ -383,6 +391,7 @@ const Preset = {
'name', 'name',
'novalidate', 'novalidate',
'nowrap', 'nowrap',
'noshade',
'open', 'open',
'optimum', 'optimum',
'pattern', 'pattern',
@ -406,6 +415,7 @@ const Preset = {
'shape', 'shape',
'size', 'size',
'sizes', 'sizes',
'start',
'sortable', 'sortable',
'sorted', 'sorted',
'span', 'span',
@ -425,6 +435,7 @@ const Preset = {
'usemap', 'usemap',
'valign', 'valign',
'value', 'value',
'vspace',
'width', 'width',
'wmode', 'wmode',
]), ]),

@ -1 +1 @@
Subproject commit 74efffd5bc25fce3552806c8d26216d23c6ba78b Subproject commit 2ef27bddfc9554c0e86d919b1c6f257d652566f0