W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] <textarea> maxlength vs. wrap (Web Forms 2.0 2004-06-27)

From: Andrew Smith <whatwg@neworbit.org>
Date: Wed, 11 Aug 2004 18:51:21 +0100
Message-ID: <411A5C99.6040002@neworbit.org>

When a <textarea> has wrap="hard", does the maxlength refer to the
number of characters entered by the user (and seen by the DOM) or the 
number of characters submitted by the form, i.e. including the extra 
line breaks?

The definition of maxlength says it is "the maximum length of the input,
in terms of numbers of characters". I can see why, from an 
implementation point of view, you would want to base it on the number of 
characters seen by the DOM. However, this might be counter-intuitive for 
developers, who might expect it to limit the number of characters 
submitted (even if the server should handle this situation).

Could the definition of wrap="hard" take this into account?

Received on Wednesday, 11 August 2004 10:51:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC