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

Boris Zbarsky bzbarsky at MIT.EDU
Thu Aug 22 09:40:21 PDT 2013


On 8/22/13 9:01 AM, Charles McCathie Nevile wrote:
>> The basic question is whether a validator should flag <input
>> maxlength="2" value="abc"> as a conformance error or not.  It seems to
>> me like it should.
>
> Why? It seems that it generally works in browsers, and has for a long time.

Sort of.  It gets you in a state where the user can erase the "c" but 
not retype it (though the erasing edit can be undone via the editor's 
"undo" functionality, apparently)....

-Boris



More information about the whatwg mailing list