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

Ryosuke Niwa rniwa at apple.com
Mon Aug 19 16:30:25 PDT 2013


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



More information about the whatwg mailing list