diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index d1727275c..e278a94e5 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -3461,7 +3461,8 @@ class e_parse 'form' => array('action', 'method', 'target'), 'audio' => array('src', 'controls', 'autoplay', 'loop', 'muted', 'preload'), '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'), 'col' => array('span'), 'embed' => array('src', 'wmode', 'type', 'width', 'height'), diff --git a/e107_tests/tests/unit/e_parseTest.php b/e107_tests/tests/unit/e_parseTest.php index 579466459..c265a9a63 100644 --- a/e107_tests/tests/unit/e_parseTest.php +++ b/e107_tests/tests/unit/e_parseTest.php @@ -1895,16 +1895,29 @@ while($row = $sql->fetch()) 13 => 'lang', 14 => 'accesskey', ), + 'table' => array( + 0 => 'border', + 1 => 'cellpadding', + 2 => 'cellspacing', + 3 => 'id', + 4 => 'style', + 5 => 'class', + 6 => 'title', + 7 => 'lang', + 8 => 'accesskey', + ), 'td' => array ( - 0 => 'colspan', - 1 => 'rowspan', - 2 => 'id', - 3 => 'style', - 4 => 'class', - 5 => 'title', - 6 => 'lang', - 7 => 'accesskey', + 0 => 'colspan', + 1 => 'rowspan', + 2 => 'name', + 3 => 'bgcolor', + 4 => 'id', + 5 => 'style', + 6 => 'class', + 7 => 'title', + 8 => 'lang', + 9 => 'accesskey', ), 'th' => array ( @@ -2673,10 +2686,20 @@ Your browser does not support the audio tag. ), 15 => array( - 'html' => '', + 'html' => '', 'expected' => '' ), + // BC Compat. + 16 => array( + 'html' => '