---
title: "tidy + doctype problem"
url: "https://www.typo3.net/d/60234-tidy-doctype-problem"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2007-03-29"
last_reply: "2007-04-18"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# tidy + doctype problem

Extensions · 4 Antworten · gestartet 2007-03-29

## Eröffnungsbeitrag

**Gernott** · 2007-03-29 · [Beitrag #1](https://www.typo3.net/d/60234-tidy-doctype-problem/1)

Hallo!

Ich habe per TS den doctype auf xhtml_trans gesetzt:

```typoscript
config {
 htmlTag_langKey = de
 doctype = xhtml_trans
 xmlprologue = none
 doctypeSwitch = 1
 xhtml_cleaning = all
}
```

und erhalte folgende Ausgabe:

```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
```

Soweit sogut. Dann habe ich allerdings HTML Tidy aktiviert, und plötzlich ist der doctype nicht mehr transistional, sondern strict:

```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
```

Wo kann ich den doctype nun festlegen? Strict fällt flach, da ich externe Links habe, und 'target' nicht mehr erlaubt ist...

Achja, diese Zeile im Installtool bringt keine Änderung:
tidy -i --quiet true --tidy-mark true -wrap 0 -raw --doctype transistional

## Antworten

### [#2](https://www.typo3.net/d/60234-tidy-doctype-problem/2) · Gernott · 2007-04-04

hat niemand eine idee? :-(
ich finde einfach keine lösung.

### [#3](https://www.typo3.net/d/60234-tidy-doctype-problem/3) · anj · 2007-04-04

Bei mir sind ledeglich die Einstellungen gesetzt:

```typoscript
config.doctype = xhtml_trans
config.xhtml_cleaning = all
config.htmlTag_langKey = de
```

Damit sollte es funktionieren ...

### [#4](https://www.typo3.net/d/60234-tidy-doctype-problem/4) · Gernott · 2007-04-04

und du verwendest auch tidy?

### [#5](https://www.typo3.net/d/60234-tidy-doctype-problem/5) · Gernott · 2007-04-18

Ich hab die Lösung gefunden:
Install Tool | All Configuration | tidy_path

Falsch:
tidy -i --quiet true --tidy-mark true -wrap 0 -raw --doctype transistional

Richtig:
tidy -i --quiet true --tidy-mark true -wrap 0 -raw --doctype loose

---

Quelle: „tidy + doctype problem“, typo3.net, https://www.typo3.net/d/60234-tidy-doctype-problem
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
