[TYPO3-core] RFC #16740: <img> Tags are rendered with border attribute in HTML5 mode

Fabien Udriot fudriot at omic.ch
Fri Jan 14 19:52:43 CET 2011


+1 by testing and reading. Though, I have attached a v2 which seems to be more CGL compliant.

 From CGL documentation, check paragraph "condition" at 
http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/4.4.1/view/1/3/#id2313557

On 1/14/11 1:51 PM, Sebastian Michaelsen wrote:
> 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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16740_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110114/d63f6bf3/attachment.txt>


More information about the TYPO3-team-core mailing list