Bug #70300
closedconfig.doctype = html5 outputs <html lang="de" xmlns="http://www.w3.org/1999/xhtml">
100%
Description
config.doctype = html5 erzeugt <html lang="de" xmlns="http://www.w3.org/1999/xhtml">
Das macht keine Sinn, da html5 ja kein xml ist. Es kann überschrieben werden mit htmlTag_setParams = none. Dann wird aber die Sprache über "config.htmlTag_langKey" nicht mehr berücksichtigt und nur <html> ausgegeben
Hier auch noch eine Beschreibung des Verhaltens: (Nicht von mir)
http://blog.matthaa.de/typo3-html5-doctype-ohne-xmlns/
Sinnvoll wäre es, wenn config.doctype = html5 xmlns="..." nicht auszugeben, jedoch die angaben von config.htmlTag_langKey zu berücksichtigen.
Updated by Riccardo De Contardi almost 9 years ago
- Description updated (diff)
@Roman Abt: Hi Roman, please write in English, not everyone can read German language :)
About the issue:
Funny: if you don't specify a doctype at all, and keep the default (which is html5) the output is correct:
<!DOCTYPE html> <html lang="en-EN">
when you put config.doctype=html5
it becomes:
<!DOCTYPE html> <html lang="en-EN" xmlns="http://www.w3.org/1999/xhtml">
It affects also 7.6-dev (latest master)
Updated by taywa gmbh almost 9 years ago
Sorry that I wrote in German. Shortly before writing this ticket, I wrote an TYPO3 related article in my blog in german. Being in this mode I did not switch to english.
Updated by Daniel Goerz almost 9 years ago
- Description updated (diff)
I don't know. I don't consider this a bug, at least I am not sure.
See: http://www.w3schools.com/tags/att_html_xmlns.asp
The xmlns attribute is required in XHTML, invalid in HTML 4.01, and optional in HTML5.
Updated by Daniel Goerz almost 9 years ago
- Subject changed from config.doctype = html5 gibt <html lang="de" xmlns="http://www.w3.org/1999/xhtml"> aus to config.doctype = html5 outputs <html lang="de" xmlns="http://www.w3.org/1999/xhtml">
Changed to topic to be in english
Updated by Stephan Großberndt almost 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43875
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43875
Updated by Georg Ringer almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8a26ac0e65ac05daaa0f1fa4cdcfef81d2413153.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed