Actions
Bug #15069
closedIf doctype is not XHTML, closed metatags prevent w3c validation
Start date:
2005-10-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If the doctype is not XHTML, the pages created by Typo3 won't validate, because the end tags of the metatags are always closed: />
This is how it should be with XHTML but not with HTML 4 or HTML 4.1.
There metatags should have the form <meta ... >
With the backslash at the endtag tha validator complains:
character data is not allowed here. /
It is easily to fix it. Substitute all hardcoded endtags in pagegen class with a variable $endtag and depending on the chosen doctype it can be '/>' or '>'.
(issue imported from #M1626)
Updated by Nico de about 19 years ago
Sorry, now I found it was reported in Bug 0000236. (I searched for metatag before and didn't find it).
So it's obsolete (but not solved yet).
Actions