Code robotstats valide W3C


vinche999
WRInaute impliqué
WRInaute impliqué
 
Messages: 646
Inscription: 14 Nov 2004

Code robotstats valide W3C

Message le Lun Mar 06, 2006 19:49

Bonjour,

J'ai installé robotstats 1.3 sur mon site.
Depuis, mes pages ne sont plus valide xhtml 1.0 strict.

Quelqu'un aurait il la solution ?
Apparemment cela vient du code javascript.
Code: Tout sélectionner
# Error  Line 227 column 17: there is no attribute "language".

<script language=javascript src="http://le-pret-personnel.be/phpmv2/phpmyvisites

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


# Error Line 227 column 17: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

<script language=javascript src="http://le-pret-personnel.be/phpmv2/phpmyvisites


# Error Line 228 column 9: document type does not allow element "noscript" here; missing one of "object", "ins", "del", "map", "button" start-tag.

<noscript>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

cedricb
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 8
Inscription: 23 Juil 2004

Message le Lun Mar 06, 2006 20:31

à la place de

Code: Tout sélectionner
language=javascript


essaie de mettre :

Code: Tout sélectionner
type="text/javascript"
Dernière édition par cedricb le Lun Mar 06, 2006 20:35, édité 1 fois.

jidébé
WRInaute discret
WRInaute discret
 
Messages: 180
Inscription: 26 Juil 2005

Message le Lun Mar 06, 2006 20:34

Bonsoir,

Le problème a l'air de venir du code de phpMyVisites plutôt que de celui de robotstats. (à ma connaissance il n'y a pas de javascript dans le code de robotstats).
Va voir sur le forum de phpmyvisites, il y a des solutions proposées.


vinche999
WRInaute impliqué
WRInaute impliqué
 
Messages: 646
Inscription: 14 Nov 2004

Message le Lun Mar 06, 2006 21:58

Oups, effectivement, c'est de phpmyvisites.

Désolé d'avoir ouvert un post pour rien.


Si vous avez aimé cette discussion, partagez-la sur vos réseaux sociaux préférés :

Lectures recommandées sur ce thème :



Qui est en ligne

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