Project

General

Profile

Actions

Bug #70300

closed

config.doctype = html5 outputs <html lang="de" xmlns="http://www.w3.org/1999/xhtml">

Added by taywa gmbh over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-10-02
Due date:
% Done:

100%

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

Description

config.doctype = html5 erzeugt <html lang="de" xmlns="http://www.w3.org/1999/xhtml&quot;>

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.

Actions #1

Updated by Riccardo De Contardi over 8 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)

Actions #2

Updated by taywa gmbh over 8 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.

Actions #3

Updated by Daniel Goerz over 8 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.

Actions #4

Updated by Daniel Goerz over 8 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

Actions #5

Updated by Stephan Großberndt over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #6

Updated by Gerrit Code Review over 8 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

Actions #7

Updated by Gerrit Code Review over 8 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

Actions #8

Updated by Georg Ringer over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF