Bug #21252
closed$this->doc->sectionHeader return wrong HTML
0%
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
Updated by Stefan Froemken about 15 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.
Updated by Steffen Kamper about 15 years ago
i would say it's a bug, and it should be prevented to deliver wrong HTML.