Project

General

Profile

Actions

Bug #46751

closed

HTMLparser - fixAttrib.['class'].list does not assign value

Added by Arno Burkhart over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2013-03-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Our TYPO3 configuration has the following setup:

lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list = width-100

But if the author assigns any class to the table tag in the RTE the result is an empty class attribute in the frontend:
<table class=" ">

In class HtmlParser on line 828 the class attribute is emptied
$tagAttrib[0][$attr] = '';

but should not, accoording to the TSref HTMLparser_tags fixAttrib.[attribute].list:
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.7.0/view/1/5/#id1555850documentation

In my opinion it has to be

$tagAttrib[0][$attr] = implode(' ', $params['list']).' '.implode(' ', $classes);

which ensures that the values ​​are assigned to the class attribute additionally.

Actions

Also available in: Atom PDF