[Typo3-dev] TYPO3 and XHTML

Seibert, Norman seibert at entios.de
Mon May 9 10:33:13 CEST 2005


Hi list,

TYPO3 (up to 3.8b2.1) renders input fields of type image not
XHTML-compatible because the attributes border, width and height are not
allowed.

A solution would be to insert the following lines in line 1775 of
tslib_content.php:

$fieldCode = preg_replace("/width=\"[\d]*\"/",'', $fieldCode);
$fieldCode = preg_replace("/height=\"[\d]*\"/",'', $fieldCode);
$fieldCode = preg_replace("/border=\"[\d]*\"/",'', $fieldCode);

Best wishes
	Norman




More information about the TYPO3-dev mailing list