[whatwg] A mechanism to improve form autofill

Aryeh Gregor ayg at aryeh.name
Thu Jul 26 01:59:31 PDT 2012


On Thu, Jul 26, 2012 at 11:52 AM, Smylers <Smylers at stripey.com> wrote:
> Perhaps specifying certain autocomplete types could set defaults for
> pattern and inputmode? So for this example autocomplete=cc-num would, if
> pattern isn't specified, imply pattern=\d{16}, and equivalently for
> inputmode?

That would be surprising, because autocomplete is just a hint, while
pattern doesn't allow form submission if it's not met.  Also, I
couldn't swear to you that all credit card numbers are actually 16
digits, or that they will forever be 16 digits, so I'm hesitant to
make that connection canonical.



More information about the whatwg mailing list