Avatar billede htx98i17 Professor
16. april 2010 - 13:25 Der er 1 kommentar og
1 løsning

maxlength

Jeg får følgende fejl på w3 validator:

Line 53, Column 81: there is no attribute "MAXLENGTH"
…tabindex="5" name="fritord" maxlength="255" rows="5" cols="20" >Venter med det…✉
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.


Kan maxlength defineres med css eller hvad er alternativet?
Avatar billede dmdisco Nybegynder
16. april 2010 - 14:34 #1
maxlength kan ikke sættes på et textarea
Avatar billede htx98i17 Professor
16. april 2010 - 14:39 #2
takker, havde slet ikke gennemskuet at det kun var textarea den brokkede sig over :)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester