Dans textarea le WRAP passe pas !
Bonjour à tous et meilleurs voeux,
Je valide mes pages avec W3C et, en général, tout est OK!
Dans certaines pages, j'utilise des popups pour afficher un code, donc, avec un texarea.
Code:
<textarea style="background-color: #C0C0C0; color: #115A0F;border: 2px solid green;" name="script" cols="77" rows="17" wrap="on">
Seulement, c'est le wrap qui passe pas. Je ne connais pas la syntaxe exacte et j'ai mis ça parce que je l'avais vu quelque part !
J'ai essayé avec VIRTUAL et PHYSICAL, mais c'est pareil.
J'ai toujours ce message, mais comme l'anglais et moi, c'est pas la joie, j'ai du mal à déchiffer :
Citation:
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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
* Line 40, column 124: there is no attribute "WRAP"
…me="script" cols="77" rows="17" wrap="on">
# Error there is no attribute X
Je me demande si je ne dois pas enlever ce wrap :?
Pourriez-vous me renseigner à ce sujet et me dire comment faire, si je le garde, pour que ça soit validé ?
Merci d'avance.