Bug #70300
closed
config.doctype = html5 outputs <html lang="de" xmlns="http://www.w3.org/1999/xhtml">
Added by taywa gmbh over 9 years ago.
Updated over 7 years ago.
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.
- 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)
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.
- Description updated (diff)
- 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
- Target version changed from 7.5 to 7 LTS
- 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
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF