mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Issue #4610 - Possible BC fix for outdated html attributes.
This commit is contained in:
@@ -3461,7 +3461,8 @@ class e_parse
|
|||||||
'form' => array('action', 'method', 'target'),
|
'form' => array('action', 'method', 'target'),
|
||||||
'audio' => array('src', 'controls', 'autoplay', 'loop', 'muted', 'preload'),
|
'audio' => array('src', 'controls', 'autoplay', 'loop', 'muted', 'preload'),
|
||||||
'video' => array('autoplay', 'controls', 'height', 'loop', 'muted', 'poster', 'preload', 'src', 'width'),
|
'video' => array('autoplay', 'controls', 'height', 'loop', 'muted', 'poster', 'preload', 'src', 'width'),
|
||||||
'td' => array('colspan', 'rowspan'),
|
'table' => array('border', 'cellpadding', 'cellspacing'), // BC Fix.
|
||||||
|
'td' => array('colspan', 'rowspan', 'name', 'bgcolor' ),
|
||||||
'th' => array('colspan', 'rowspan'),
|
'th' => array('colspan', 'rowspan'),
|
||||||
'col' => array('span'),
|
'col' => array('span'),
|
||||||
'embed' => array('src', 'wmode', 'type', 'width', 'height'),
|
'embed' => array('src', 'wmode', 'type', 'width', 'height'),
|
||||||
|
@@ -1895,16 +1895,29 @@ while($row = $sql->fetch())
|
|||||||
13 => 'lang',
|
13 => 'lang',
|
||||||
14 => 'accesskey',
|
14 => 'accesskey',
|
||||||
),
|
),
|
||||||
|
'table' => array(
|
||||||
|
0 => 'border',
|
||||||
|
1 => 'cellpadding',
|
||||||
|
2 => 'cellspacing',
|
||||||
|
3 => 'id',
|
||||||
|
4 => 'style',
|
||||||
|
5 => 'class',
|
||||||
|
6 => 'title',
|
||||||
|
7 => 'lang',
|
||||||
|
8 => 'accesskey',
|
||||||
|
),
|
||||||
'td' =>
|
'td' =>
|
||||||
array (
|
array (
|
||||||
0 => 'colspan',
|
0 => 'colspan',
|
||||||
1 => 'rowspan',
|
1 => 'rowspan',
|
||||||
2 => 'id',
|
2 => 'name',
|
||||||
3 => 'style',
|
3 => 'bgcolor',
|
||||||
4 => 'class',
|
4 => 'id',
|
||||||
5 => 'title',
|
5 => 'style',
|
||||||
6 => 'lang',
|
6 => 'class',
|
||||||
7 => 'accesskey',
|
7 => 'title',
|
||||||
|
8 => 'lang',
|
||||||
|
9 => 'accesskey',
|
||||||
),
|
),
|
||||||
'th' =>
|
'th' =>
|
||||||
array (
|
array (
|
||||||
@@ -2673,10 +2686,20 @@ Your browser does not support the audio tag.
|
|||||||
),
|
),
|
||||||
|
|
||||||
15 => array(
|
15 => array(
|
||||||
'html' => '<iframe width="640" height="360" frameborder="0" allowfullscreen src="http://nowhere.com" this-attribute-should-be-removed="value1" this-attribute-should-also-be-removed="value2"></iframe>',
|
'html' => '<iframe width="640" height="360" frameborder="0" allowfullscreen src="http://nowhere.com" this-attribute-should-be-removed="value1" this-attribute-should-also-be-removed="value2"></iframe>',
|
||||||
'expected' => '<iframe width="640" height="360" frameborder="0" allowfullscreen="" src="http://nowhere.com"></iframe>'
|
'expected' => '<iframe width="640" height="360" frameborder="0" allowfullscreen="" src="http://nowhere.com"></iframe>'
|
||||||
|
|
||||||
),
|
),
|
||||||
|
// BC Compat.
|
||||||
|
16 => array(
|
||||||
|
'html' => '<table border="1" cellpadding="5" cellspacing="7"><tr><td></td></tr></table>',
|
||||||
|
'expected' => '<table border="1" cellpadding="5" cellspacing="7"><tr><td></td></tr></table>',
|
||||||
|
),
|
||||||
|
// BC Compat.
|
||||||
|
17 => array(
|
||||||
|
'html' => '<td name="G" bgcolor="#660000">colored</td>',
|
||||||
|
'expected' => '<td name="G" bgcolor="#660000">colored</td>',
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user