Problème de validation avec RobotStats chez OVH

nephelion
WRInaute discret
WRInaute discret
 
Messages: 77
Inscription: Sam Déc 04, 2004 19:02

Problème de validation avec RobotStats chez OVH

Message le Mer Avr 27, 2005 8:50

bonjour,
sur une page chez ovh avec déclaration de doctype
Code: Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2:       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
  3: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">


je mets la formule habituelle :
Code: Tout sélectionner
<?php
include($DOCUMENT_ROOT.'/robotstats/robotstats.inc.php');
?>

que ce soit avant </head> ou après </html>

ici le code est placé après </html> ligne 114
à la validation sort ça :
#

Line 115, column 2: "DOCTYPE" declaration not allowed in instance

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">


#

Line 116, column 5: document type does not allow element "html" here

<html>

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).



quand on regarde le code regénéré à la validation :
Code: Tout sélectionner
114: </html>
115: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
116: <html>
117: <head>
118: <title></title>
119: </head>
120: <body>
121: </body>
122: </html>


ca ne fait que sur ovh, pas sur free.

merci de m'éclairer

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités