[TASK] Deprecate TS option for XHTML 2.0 82/35682/2
authorBenjamin Mack <benni@typo3.org>
Tue, 30 Dec 2014 22:56:59 +0000 (23:56 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 1 Jan 2015 20:24:18 +0000 (21:24 +0100)
The TypoScript option for setting XHTML 2.0
for the frontend output

  config.xhtmlDoctype = xhtml_2

is deprecated and marked for removal with CMS8.

XHTML2.0 was dropped by the W3C in favor
of HTML5 in 2010.

Releases: master
Resolves: #24387
Change-Id: I3bdf46ac8b42a162f46f29de5d8fc088acf578ba
Reviewed-on: http://review.typo3.org/35682
Reviewed-by: Frederic Gaus <gaus@flagbit.de>
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-24387-Xhtml2.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Page/PageGenerator.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-24387-Xhtml2.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-24387-Xhtml2.rst
new file mode 100644 (file)
index 0000000..7f596ac
--- /dev/null
@@ -0,0 +1,21 @@
+===================================================================
+Deprecation: #24387 - TypoScript option config.xhtmlDoctype=xhtml_2
+===================================================================
+
+Description
+===========
+
+The TypoScript option ``config.xhtmlDoctype = xhtml_2`` is marked for removal in CMS 8, due to the W3C decision to
+fully work on HTML5 instead of XHTML2. See http://www.w3.org/MarkUp/ and http://www.w3.org/News/2010.html#entry-8982
+for more details.
+
+
+Affected installations
+======================
+
+Any TYPO3 installation with TypoScript that relies on ``config.xhtmlDoctype = xhtml_2``.
+
+Migration
+=========
+
+Use different doctypes like html5 to render the frontend of the TYPO3 site.
index 6479350..722d49c 100644 (file)
@@ -154,6 +154,7 @@ class PageGenerator {
                                        $GLOBALS['TSFE']->xhtmlVersion = 110;
                                        break;
                                case 'xhtml_2':
+                                       GeneralUtility::deprecationLog('The option "config.xhtmlDoctype=xhtml_2" is deprecated since TYPO3 CMS 7, and will be removed with CMS 8');
                                        $GLOBALS['TSFE']->xhtmlVersion = 200;
                                        break;
                                default: