W3C home > Mailing lists > Public > www-validator@w3.org > May 2012

Use maxlength in textarea

From: Han <hvpost@gmail.com>
Date: Tue, 1 May 2012 15:21:37 +0200
Message-ID: <CAPAK9OyjqvUGJ4zEJR7L2TmWM5m3-vPpxjQEd+DocoyapiwAag@mail.gmail.com>
To: www-validator@w3.org

I use the following code:

<textarea name=\"c_opm\" rows=\"2\" cols=\"60\" maxlength=\"255\">" .
$c_opm . "</textarea>

when i use the HTML-validator the section over maxlength gives the error

 there is no attribute "MAXLENGTH"

I use this to limit the number off postions that the user can fill in, and
it works, but the attribute is not on

Is it a general attribute or should it not be used?

H. Velthuis
Received on Wednesday, 2 May 2012 15:07:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:26 UTC