Project

General

Profile

Actions

Bug #62134

closed

xhtml_cleaning is ignored on HTML5 doctype and produces invalid xml/xhtml

Added by Sigfried Arnold over 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

Actions #1

Updated by Patrick Broens over 9 years ago

XHTML5 !== HTML5

Currently we only provide HTML5, so it is logical xhtml_cleaning is ignored.

Solution 1 is not the solution.

Actions #2

Updated by Wouter Wolters almost 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

Actions

Also available in: Atom PDF