Project

General

Profile

Actions

Bug #29246

closed

HTMLparser_tags: fixAttrib.unset = 0 in fact unsets the value, too

Added by Egbert van der Hout over 13 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
Start date:
2011-08-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

According to http://typo3.org/documentation/document-library/references/doc_core_tsref/4.5.0/view/1/5/ the option "unset" for fixAttrib.[tag] is a boolean.

In the code of class.t3lib_parsehtml.php it is not. A strlen is used:

if (strlen($params['unset'])) {
unset($tagAttrib0[$attr]);
}

So if you give it any value (including 0) the tag will be removed. Either change the documentation or the code.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #29769: Parse error in t3lib/class.t3lib_parsehtml.phpClosedOliver Hader2011-09-14

Actions
Actions

Also available in: Atom PDF