[whatwg] credit card numbers

Ian Hickson ian at hixie.ch
Sun Aug 22 12:49:22 PDT 2004


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list