[TYPO3-core] RFC #16740: <img> Tags are rendered with border attribute in HTML5 mode
Jigal van Hemert
jigal at xs4all.nl
Fri Jan 14 14:16:43 CET 2011
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'];
....
and ends up in $GLOBALS['TSFE']->xhtmlDoctype as was used before. If
config.xhtmlDoctype is set this will be used instead of config.doctype,
so I wonder if it is safe to us the latter?
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list