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

[whatwg] Can the maximum allowed value length be changed to restrict the number of characters?

From: Ryosuke Niwa <rniwa@apple.com>
Date: Mon, 19 Aug 2013 16:30:25 -0700
Message-id: <9EA19215-8AF4-4061-9EAA-CE75B27661A1@apple.com>
To: WHAT Working Group <whatwg@lists.whatwg.org>
Cc: Kent Tamura <tkent@chromium.org>, Alexey Proskuryakov <ap@apple.com>
Hi,

http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#maximum-allowed-value-length

Why is the maxlength attribute of the input element specified to restrict the length of the value by the code-unit length?

This is counter intuitive for users and authors who typically intend to restrict the length by the number of composed character sequences.  In fact, this is the current shipping behavior of Safari and Chrome.

Can the specification be changed to use the number of composed character sequences instead of the code-unit length?

- R. Niwa
Received on Monday, 19 August 2013 23:30:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC