[whatwg] Can the maximum allowed value length be changed to restrict the number of characters?
Anne van Kesteren
annevk at annevk.nl
Tue Aug 20 07:09:30 PDT 2013
On Tue, Aug 20, 2013 at 12:30 AM, Ryosuke Niwa <rniwa at apple.com> wrote:
> Can the specification be changed to use the number of composed character sequences instead of the code-unit length?
In a way I guess that's nice, but it also seems confusing that given
data:text/html,<input type=text maxlength=1>
pasting in U+0041 U+030A would give a string that's longer than 1 from
JavaScript's perspective. I don't think there's any place in the
platform where we measure string length other than by number of code
units at the moment.
--
http://annevankesteren.nl/
More information about the whatwg
mailing list