Hi,
was ist an folgendem HTML invalide?
<!doctype html>  
<html class="no-js" xml:lang="de" xmlns="http://www.w3.org/1999/xhtml" xmlns:sf="http://www.example.com">  
<head>  
	<meta charset="utf-8" />  
  
	<title>Foo</title>  
</head>  
<body>  
  
</body>  
</html>
Der Validator auf w3.org sagt:
Line 1, Column 2: Not a name start character, U+21
<!doctype html>
Was bedeutet das?
Dieser Validator sagt, dass die ganzen Attribute die Namespaces verwenden falsch sind.
Ich dachte das liegt evtl. an der fehlenden XML-Deklaration.
Aber wenn ich <?xml version="1.0" encoding="UTF-8" ?> vor den Doctype setze kommt nur:
Error: Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)
Und im Anschluss wieder die Fehler bezüglich der Attribute mit Namespace…
Was ist falsch?
~dave