I hate the way companies try to do custom formatting and validation as you type. It breaks form handling in many different and exciting ways and pretty much ensures that autofill (or even just copy/paste) will fail. If you must do client-side massaging of form data, at least wait until the user has pressed Submit before messing with the form's contents. And don't assume that the keypresses are the only way your input…
An HTML attribute potentially worth $4.4M to Chipotle
11–20 of 33 posts
Re: An HTML attribute potentially worth $4.4M to Chipotle
#12ALWAYS SANITIZE YOUR INPUTS. When that sanitation is complete, replace what's in the form. You don't always have to sanitize the frontend, but ALWAYS sanitize the backend.
Click bait because there's nothing substantial claiming that this actually resulted in a loss of revenue for Chipotle other than some napkin mathematics. A counter point I would make is that I assume most people don't use CC saving in their browser as everyone seems to make a big stink about it. Additionally I would wonder about the amount of people that would notice their info was correct, but failing, and then go through and manually change the information before submitting again. In this case, they may be more inclined to follow the standard 2 digit year that everyone seems to ask for.
Re: An HTML attribute potentially worth $4.4M to Chipotle
#13Re: An HTML attribute potentially worth $4.4M to Chipotle
#14Re: An HTML attribute potentially worth $4.4M to Chipotle
#15Click bait title. TL;DR: Chipotle is manipulating the year field in CC transactions and expecting a two digit year instead of a four digit, but didn't set a max length on the field. ALWAYS SANITIZE YOUR INPUTS. When that sanitation is complete, replace what's in the form. You don't always have to sanitize the frontend, but ALWAYS sanitize the backend. Click bait because there's nothing substantial claiming that this…
Auto fill messes up the entry, people refill manually. This happens all the time on numerous payment forms
Re: An HTML attribute potentially worth $4.4M to Chipotle
#16I would doubt that it really results in lost orders as people have already invested a lot of time by selecting their food choice and by that time are hungry.
Or to put it another way. Estimate how many programmer-hours it takes to fix this issue. With that number calculate the % of people that are likely to abandon the order. Is that % likely to be happening?
Re: An HTML attribute potentially worth $4.4M to Chipotle
#17Click bait title. TL;DR: Chipotle is manipulating the year field in CC transactions and expecting a two digit year instead of a four digit, but didn't set a max length on the field. ALWAYS SANITIZE YOUR INPUTS. When that sanitation is complete, replace what's in the form. You don't always have to sanitize the frontend, but ALWAYS sanitize the backend. Click bait because there's nothing substantial claiming that this…
Exactly - complete click bait. Auto fill messes up the entry, people refill manually. This happens all the time on numerous payment forms
Only if they suspect that might help. This case doesn't exactly make that clear.
Re: An HTML attribute potentially worth $4.4M to Chipotle
#18I would doubt that it really results in lost orders as people have already invested a lot of time by selecting their food choice and by that time are hungry.
[0] https://www.blog.shippypro.com/2019/01/27/2019-ecommerce-con...
[1] https://www.growcode.com/blog/ecommerce-conversion-rate/
Re: An HTML attribute potentially worth $4.4M to Chipotle
#19In the race to use fancier and fancier tools to make web user interfaces go I think we loose out a lot by avoiding the browser's inbuilt support for these things. Like how eBay's new search feature does not allow me to click in it and type in one motion. I have to click, wait for it to redraw without the magnifying glass, and then click again to put the cursor where I wanted it, before editing the query. Or how some…
Re: An HTML attribute potentially worth $4.4M to Chipotle
#20In the race to use fancier and fancier tools to make web user interfaces go I think we loose out a lot by avoiding the browser's inbuilt support for these things. Like how eBay's new search feature does not allow me to click in it and type in one motion. I have to click, wait for it to redraw without the magnifying glass, and then click again to put the cursor where I wanted it, before editing the query. Or how some…
This has nothing to do with web standards. A developer decided to limit a field which could be either 2 or 4 characters to only 2. They could have used 10 different approaches to do this and they all would be broken for autocomplete and copy/paste.
> To test what would happen if Chipotle’s form used these standards, I opened my browser’s developer tools and edited the expiration year field:
> Video of autofill on the Chipotle order form after `maxlength=”2″` has been added using developer tools. It works!
> Adding the maxlength attribute to the field fixes the problem. This makes sense. We’re telling the browser, and by extension the autofill feature, how many digits it should use for the expiration year.
> Autofill is smart enough to know that if we only want two digits for a year field, that the form needs the last two digits of the year. We just need to tell the browser how many digits we expect.