Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1685 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Code non validé par le W3C

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Code non validé par le W3C

n°1417679
plotch
Posté le 01-08-2006 à 19:53:22  profilanswer
 

Bonjour a tous, j'ai cherché un peu partout et je n'ai pas trouvé d'ou vient le problème.
 
Voila mon code :  
 
 

Citation :


<script type="text/javascript">
var textspan = '';
var texthelp = '';
function show(span,help) {
var textspan = span;
var texthelp = help;
if(document.getElementById){
tabler = document.getElementById("" + span + "" );
if(tabler.style.display=="none" ){
document.getElementById("" + help +"" ).innerHTML = '-';
tabler.style.display="";}else{document.getElementById("" + help +"" ).innerHTML = '+';
tabler.style.display="none";
}
}
}
</script>


 

Citation :


[<a href="#" onClick="show('n1','accoustique');return(false)" id="accoustique">+</a>]<br />
<span id="n1" style="display:none">
| commentaire 1<br />
| commentaire 2<br />
| commentaire 3<br /><br />
</span>

 
 
Lorseque je fais vérifier ma page par le w3c voiçi ce qu'il m'indique :  
 

Citation :

[<a href="#" onClick="show('n1','accoustique');return(false)" id="accoustique">+
 
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.


 
J'ai beau chercher, je ne vois pas d'ou viens le problème, quelqu'un est t'il capable de m'éclairer ?
Je compte sur vous ! Merci d'avance !


Message édité par plotch le 01-08-2006 à 19:56:10
mood
Publicité
Posté le 01-08-2006 à 19:53:22  profilanswer
 

n°1417685
plotch
Posté le 01-08-2006 à 20:11:26  profilanswer
 

:pt1cable: le problème venait tout simplement de onClick ( les majuscules ne sont aps tolérées dans une page xhtml )  
Arf le con !


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Code non validé par le W3C

 

Sujets relatifs
Code sourcePlugin Eclipse generation code (Akrogen)
une petit trou de code[wxWidget] calculer le temps d'éxecution d'un bout de code
Nom de fichier valide[WebCV] Avis sur le code
Code terminéProbleme hack IE et Validation W3C
w3c markupMon texte dépasse des cadres, que modifier dans le code html ?
Plus de sujets relatifs à : Code non validé par le W3C


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR