Bug #21252

$this->doc->sectionHeader return wrong HTML

Added by Stefan Froemken over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-10-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I wrote an extension and try some samples with mediumdoc
While this test I saw that following:

$this->content .= $this->doc->sectionHeader($GLOBALS['LANG']->getLL('header-1'), 0, ' class="csc-header"');

returns:

<h4class="csc-header">Überschrift 1 Ich bin der Inhalt und enthalte Sonderzeichen wie ü ö ß </h4class="csc-header">

There is a missing SPACE between h4 and my class.

You can change this code into:

$this->content .= $this->doc->sectionHeader($GLOBALS['LANG']->getLL('header-1'), 0, 'class=" csc-header"');

to add spacer manually, but I think it should be fixed...
(issue imported from #M12207)


Files

12207.diff (817 Bytes) 12207.diff Administrator Admin, 2009-10-12 13:46
#1

Updated by Stefan Froemken over 11 years ago

I just read in template.php:

@param string Additional attributes to h-tag, eg. ' class=""'

There is a space between ' and class. So this is no mistake. Please change this bug to a feature request.

#2

Updated by Steffen Kamper over 11 years ago

i would say it's a bug, and it should be prevented to deliver wrong HTML.

#3

Updated by Steffen Kamper over 11 years ago

committed to trunk, rev 6150

Also available in: Atom PDF