Project

General

Profile

Actions

Bug #19038

closed

template->startPage returns invalid XHTML

Added by Christian Kuhn almost 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-06-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The doctype header of template->docType='xhtml_trans' does not produce valid xhtml markup in template->startPage().

template->docType="xhtml_trans"
template->startPage('foo');

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
.....

W3 validator returns:
Line 7, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml
<html>
Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="en" lang="en">

Line 4, Column 5: XML Parsing Error: XML declaration allowed only at the start of the document .

(issue imported from #M8861)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #15617: template->docType is not compatible with IEClosedChristian Kuhn2006-02-13

Actions
Is duplicate of TYPO3 Core - Bug #16033: Login-Page (typo3/index.php): removing whitespace preceding XML DeclarationClosedChristian Kuhn2006-04-12

Actions
Actions #1

Updated by Christian Kuhn about 15 years ago

Resolved as duplicate of #16033

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF