Re: [whatwg] A mechanism to improve form autofill

On Thu, Jul 26, 2012 at 11:52 AM, Smylers <Smylers@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.

Received on Thursday, 26 July 2012 09:00:25 UTC