News for hackers. Stuff that matters.
Re:The anatomy of a credit card form by mseebach on Wednesday July 15, 2015 @08:23AM (#9890899)
As opposed to most other text input fields you encounter in the wild, credit cards (and phone numbers) have a singular canonical format. As long as you don't limit HOW it's entered (or pasted), it makes a lot of sense to coerce the input into the canonical format.
Re:The anatomy of a credit card form by stonogo on Wednesday July 15, 2015 @11:14AM (#9891692)
They most certainly do not have a singular canonical format. American Express cards use different groupings and a four-digit card security code.
Re:The anatomy of a credit card form by abhorrence on Wednesday July 15, 2015 @12:34PM (#9892298)
At least for the US, the issuer of a credit card (and thus the format) can frequently be determined from as little as the first digit. For instance, nearly all card numbers starting with '4' are Visa.
Re:The anatomy of a credit card form by eli on Wednesday July 15, 2015 @09:25AM (#9891100)
Most fields don't reformat and add characters like spaces as I type. I personally find it a bit jarring. I suppose reformatting it one the box loses focus isn't as bad, but I'd still prefer you just keep what I type.
Re:The anatomy of a credit card form by cdcarter on Wednesday July 15, 2015 @10:38AM (#9891454)
The iPhone reformats phone numbers as you type them, and I personally don't find it jarring at all.
Re:The anatomy of a credit card form by harywilke on Wednesday July 15, 2015 @11:09AM (#9891657)
Try moving to a country that splits phone numbers different that what you are used to. I grew up with 3-3-4 but live in a country that splits 2-4-4. Subtly annoying.