W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2012

Re: [whatwg] A mechanism to improve form autofill

From: Aryeh Gregor <ayg@aryeh.name>
Date: Thu, 26 Jul 2012 11:59:31 +0300
Message-ID: <CAKA+AxneQbU88FuG_4yOPqsgCf1e6P_tFDyqaVbAnh_=XGseKw@mail.gmail.com>
To: whatwg@lists.whatwg.org, whatwg <whatwg@whatwg.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:09 GMT