[Typo3-dev] TYPO3 and XHTML

JoH info at cybercraft.de
Mon May 9 11:17:57 CEST 2005


> 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.

"border" is not allowed but "width" and "height" definitely are.
In fact they are recommended to determine the space needed for the images
before loading them.

> 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);

Another solution would be to install this extension:
http://typo3.org/extensions/repository/search/qcom_htmlcleaner/

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau






More information about the TYPO3-dev mailing list