W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] credit card numbers

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 22 Aug 2004 19:49:22 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408221939350.20869@dhalsim.dreamhost.com>
On Wed, 4 Aug 2004, [iso-8859-1] H?kon Wium Lie wrote:
>
> In
> 
>   http://www.w3.org/2004/07/css-mmi/
> 
> credit card numbers have their own type.

A string matching the pattern="[0-9]{10}" is a credit card number:

   <input pattern="[0-9]{10}">

We don't really want to have a specific type for them in case the type 
definition changes, IMHO.


> Perhaps expire dates should as well. This would help auto-fillout 
> immensely and merchants would rejoice.

Expiry dates already have their own type ("month", previously called 
"expdate", renamed by popular demand).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 22 August 2004 12:49:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC