Hacker News new | ask | show | jobs
by kayfox 2463 days ago
In 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 sites hijack the scrollbar, or muck with it, or how about that endless scroll that gets mucked up every so often and you gotta start over.

I suppose web programmers need something to do.

3 comments

Because someone in business wants something different than the web standard.

I shit you not, someone asked to remove scrollbars from nested lists in Windows.

The remapping of middle click is a scourge. I want it to open a new tab, not behave like a left click or do nothing.
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.
From TFA:

> 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.