Zum Inhalt springen

tidy + doctype problem

Erstellt am 29. März 2007 · 4 Antworten · letzte Antwort am 18. April 2007

Tags: Frage

Gernott ·

Hallo!

Ich habe per TS den doctype auf xhtml_trans gesetzt:

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

und erhalte folgende Ausgabe:

<!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:

<!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

anj ·

Bei mir sind ledeglich die Einstellungen gesetzt:

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

Damit sollte es funktionieren ...

Gernott ·

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