Tom's Guide > Forum > Programmation > Probleme Validatio WC

Probleme Validatio WC

Forum Programmation : Probleme Validatio WC

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonjour a tous

j'ai un petit probleme

J'ai testé mon site avec le W3C validator xhtml 1.0 strict. Il me reste 3 erreures (les 3 mêmes) mais je ne comprend pas comment les retirer

Citation :

Line 43, Column 172: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…"2affbff0a3e06fc108134e6cde01f192" />

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



Citation :

Line 275, Column 146: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…"2affbff0a3e06fc108134e6cde01f192" />

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




Citation :

Line 383, Column 190: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…"2affbff0a3e06fc108134e6cde01f192" />

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




Il semblerait que le probleme vienne de mes input

voici le formulaire de la premiere erreure :

Code :
  1. <form action="./recherche.php" method="post" id="recherche">
  2.     <div>
  3.     <input type="text" name="requete" value="Rechercher..." id="txt_recherche" onfocus="recherche()" />
  4.     <input type="submit" id="btn_recherche" src="../images/bouton_ok.gif" />
  5.     </div>
  6. </form>





Je ne comprend pas d'ou sort 2affbff0a3e06fc108134e6cde01f192 car je n'ai nul part cette chaine étrange quand je fais un affichage du code source ...

Merci de m'aider ;)

Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.

salut, je ne saurais trop t'aider étant assez sceptique quant à cette validation W3C permettant principalement pour moi à m'arracher les cheveux.
Je sais une chose, la page d'accueil de google qui est très simple comporte 42 erreurs selon la norme W3C. Cette norme est faite pour les réels geeks et je te souhaite bonne chance tu en auras besoin

------------------------------ "Parlons moins codons plus"
Répondre à mcpherson

Si j'arrive pas a la corriger tant pi c'est pas super grave mais en fait ce qui me tracasse c'est que je ne comprend pas d'ou sort 2affbff0a3e06fc108134e6cde01f192

Sur le code source je n'ai pas ça mais la le validateur me retrouve cette chaine 3 fois ...

Bref merci d'avance pour vos explication

Répondre à Fungio76

et bien pour moi cette chaine est le retour en code hexa de la fonction recherche que t'apelle dans le onfocus

------------------------------ "Parlons moins codons plus"
Répondre à mcpherson

ma fonction retourne false

et quand j'actualise le validateur la chaine change

Répondre à Fungio76

Edit bon ba ça vennait du PHPSESSID

j'ai cherché comment le retirer sous OVH

J'ai rajouté ceci dans le .htaccess

SetEnv SESSION_USE_TRANS_SID 0

Voila voila merci

Répondre à Fungio76

Pour moi le message est très clair mais bon. Remplace <div> par <fieldset>

------------------------------ 20minutes.fr, l'information en continu.
Répondre à SiM07
Tom's Guide > Forum > Programmation > Probleme Validatio WC
Aller à :

Il y a 678 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens