Page 1 of 1

W3C Validator: Häh?

Posted: Fri Feb 23, 2007 5:51 pm
by waechter
Kann mir bitte jemand erklären, was der Validator da genau meint?
Infos wrote:Unknown Parse Mode!
The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.

Namespace Found in non-XML Document
Namespace "" found, but document type is not XML!
Fehler wrote:Error Line 10 column 104: character data is not allowed here.
...4-6 Ted Kulp. All rights reserved." />

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a aragraph) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).
Ich glaube das Problem ist, das der Validator das Dokument als HTML erkennt aber es eigentlich XHTML-mäßig geschrieben ist (bsp.
)

Re: W3C Validator: Häh?

Posted: Fri Feb 23, 2007 8:28 pm
by shackleton
Schau, ob überhaupt eine sog. DOCTYPE-Deklaration am Anfang der Datei steht. Wenn diese fehlt, dann rät der Validator. Vielleicht ist es auch nicht die richtige. http://www.htmlhelp.com/tools/validator/doctype.html kann da möglicherweise weiterhelfen.

Re: W3C Validator: Häh?

Posted: Mon Feb 26, 2007 10:46 am
by faglork
Poste doch mal den kompletten HEAD-Bereich.

Viele Grüße,
Alex