[TYPO3-core] RFC #16740: <img> Tags are rendered with border attribute in HTML5 mode
Sebastian Michaelsen
sebastian.gebhard at gmail.com
Fri Jan 14 14:51:34 CET 2011
Am 14.01.2011 14:16, schrieb Jigal van Hemert:
> Hi,
>
> On 14-1-2011 12:01, Sebastian Michaelsen wrote:
>> Solution: On XHTML Strict and others the border attribute is already
>> ommitted, expand that behaviour to HTML5.
>
> Why change the check to $GLOBALS['TSFE']->config['config']['doctype'] ?
> In TSpagegen (around line 215) it is processed:
>
> if (!$GLOBALS['TSFE']->config['config']['xhtmlDoctype']) {
> $GLOBALS['TSFE']->config['config']['xhtmlDoctype'] = $GLOBALS['TSFE']->config['config']['doctype'];
> }
> if ($GLOBALS['TSFE']->config['config']['xhtmlDoctype']) {
> $GLOBALS['TSFE']->xhtmlDoctype = $GLOBALS['TSFE']->config['config']['xhtmlDoctype'];
A few lines below:
switch((string)$GLOBALS['TSFE']->config['config']['xhtmlDoctype']) {
// ...
default:
$GLOBALS['TSFE']->getPageRenderer()->setRenderXhtml(FALSE);
$GLOBALS['TSFE']->xhtmlDoctype = '';
$GLOBALS['TSFE']->xhtmlVersion = 0;
}
if the doctype is not a xhtml type $GLOBALS['TSFE']->xhtmlDoctype will be empty. That's why I need
to use $GLOBALS['TSFE']->config['config']['doctype'] to check against.
More information about the TYPO3-team-core
mailing list