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 !
Marsh Posté le 01-08-2006 à 19:53:22
Bonjour a tous, j'ai cherché un peu partout et je n'ai pas trouvé d'ou vient le problème.
Voila mon code :
<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>
[<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 :
[<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