[whatwg] Maxlength attribute on input[type=number]

Jukka K. Korpela jkorpela at cs.tut.fi
Thu Jun 27 15:19:10 PDT 2013


2013-06-28 1:09, Scott González wrote:

> Why would you want to set maxlength as opposed to setting max?

People want to do such things to cover old browsers that do not support 
type=number. Such browsers ignore both the type attribute and the max 
attribute, so to impose *some* limits, people would use maxlength.

Yucca





More information about the whatwg mailing list