Willkommen, Gast ( Anmelden | Registrierung )     [ Hilfe | Mitglieder | Suche ]

 
Reply to this topicStart new topic
> doctype, doctype_autoinsert und $sf_doctype
dacrow
Beitrag Wed. 14. January 2009, 21:37
Beitrag #1


Newbie
*

Gruppe: Members
Beiträge: 2
Mitglied seit: 15.12.2008
Mitglieds-Nr.: 1.755



hi leute!
bin mit sefrengo am arbeiten und soweit auch zufrieden!
jedoch habe ich meine website mit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

gecodet und da sefrengo im header folgendes

<meta name="generator" content="Sefrengo / www.sefrengo.org" />
<meta name="robots" content="index, follow" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

als absolutes minimum mit reingeneriert, bekomme ich beim validieren errors wegen der slashs am ende der tags!!

frage: wo kann ich $sf_doctype auf mein HTML 4 einstellen bzw $sf_slash_closing_tag in der inc.generate_code.php in der switch anweisung auf '' setzen, so dass ich da meine ruhe hab?
muss ich da in die inc.generate_code.php eingreifen oder hab ich irgendwo im backend eine möglichkeit, das umzustellen? hab gelesen, in der db gibts irgendwo auch ein eintrag dafür?

was ist da jetzt das beste, um möglichst schnell die w3c validierung durchzubekommen??

danke!

ps:

hier mal ein paar listing vom w3c validator:




Error Line 8, Column 44: document type does not allow element "META" here.

<meta name="robots" content="index, follow" />

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).






oder





# Error Line 166, Column 5: document type does not allow element "TR" here.

<tr>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


Der Beitrag wurde von dacrow bearbeitet: Wed. 14. January 2009, 22:04
Go to the top of the page
 
+Quote Post
andi
Beitrag Wed. 14. January 2009, 22:00
Beitrag #2


purist
********

Gruppe: AdvancedMembers
Beiträge: 1.525
Mitglied seit: 30.06.2006
Wohnort: luzern (schweiz)
Mitglieds-Nr.: 16



hallo

rumfummeln musst du gar nichts, nur korrekt einstellen. wenn du die seite in html 4.01 transitional geschrieben hast, so musst du unter layouts --> doctype auch diesen angeben. die angabe ist für den output des systems bzw. der module wichtig. steht dort keiner, so werden die tags xhtml-konform ausgegeben.

ob du einen haken bei «doctype automatisch an den anfang des layouts einfügen» benötigt, hängt davon ab, ob du den doctype schon manuel im layout hast oder diesen von sefrengo einfügen lassen willst.

Angehängte Datei  layout.png ( 40.91KB ) Anzahl der Downloads: 15



gruss andi


--------------------
Go to the top of the page
 
+Quote Post
dacrow
Beitrag Wed. 14. January 2009, 22:06
Beitrag #3


Newbie
*

Gruppe: Members
Beiträge: 2
Mitglied seit: 15.12.2008
Mitglieds-Nr.: 1.755



Viiiiieeelen DANK !! laugh.gif
das wars gewesen!! hab diese kleine drop-down box einfach übersehen wink.gif

schönen abend noch!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Besucher lesen dieses Thema (Gäste: 1 | Anonyme Besucher: 0)
0 Mitglieder:

 



RSS Vereinfachte Darstellung Aktuelles Datum: 26.4.24 - 20:13

Sefrengo ist ein eingetragenes Markenzeichen und urheberrechtlich geschützt.
Copyright 2009 Design & Daten, Alle Rechte vorbehalten.