Issue Bug Closed

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

Arno Burkhart 03/28/13, 16:12 updated 07/30/13, 23:13

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.