Issue Bug Closed

#15069If doctype is not XHTML, closed metatags prevent w3c validation

Nico de 10/17/05, 15:28 updated 08/12/06, 14:23

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

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.