Bug #62134
closedxhtml_cleaning is ignored on HTML5 doctype and produces invalid xml/xhtml
0%
Description
Steps to reproduce:
doctype = xhtml_strict xhtml_cleaning = all
output:
<link rel="stylesheet" type="text/css" href="/typo3temp/stylesheet_0489429c68.css?1412773824" media="all" />
this works as expected and produces well formed xml which can be parsed by external applications
but if doctype is set to html5 this wont work
doctype = html5 xhtml_cleaning = all
output:
<link rel="stylesheet" type="text/css" href="/typo3temp/stylesheet_0489429c68.css?1412773824" media="all">
solution:
1 ) do not ignore xhtml_cleaning when html5 doctype is set
or
2) introduce another doctype "xhtml5"
imho the better solution is #1 since you can specify your own doctype by not using a predefined keyword - if you do so, xhtml_cleaning will be ignored too
Updated by Patrick Broens almost 10 years ago
XHTML5 !== HTML5
Currently we only provide HTML5, so it is logical xhtml_cleaning is ignored.
Solution 1 is not the solution.
Updated by Wouter Wolters over 9 years ago
- Status changed from New to Rejected
XHTML cleaning is not necessary anymore, since modern technology bases completely on HTML5. Therefore the according functionality has been moved to the legacy extension "compatibility6". More information can be found at: https://review.typo3.org/#/c/36527/6/typo3/sysext/core/Documentation/Changelog/master/Deprecation-62855-XHTMLCleaningMovedToLegacyExtension.rst
The extension tidy can help you with formatting your HTML output.
http://typo3.org/extensions/repository/view/tidy
So we (the core team) won't fix this and I'm closing this issue now