Live data from Hacker News

HTML Form Validation is underused

expressionstatement.com

271–280 of 343 posts

Re: HTML Form Validation is underused

#271

Earlier quoted context omitted.

To be honest I would expect dates on a Dutch site to be shown in dutch format, just like I expect dates on American sites to be formatted in the US way.

How do we know when a site is Dutch? Maybe check the URL to see if the TLD indicates? I'm in agreement with showing/inputting dates in the users' regional setting.

of course

Re: HTML Form Validation is underused

#272
post #236

Earlier quoted context omitted.

plenty of designers say this, often company leadership is the one pushing them to style everything because everyone else does

Well the ones I've worked with couldn't care less. Of course they love to show off how good they are to the poor disabled people, but that doesn't mean anything until some government reminds us that we are in breach of contract unless we make our GUI accessible.

this seems like a very mean spirited take on accessibility?

Re: HTML Form Validation is underused

#273
post #177

Earlier quoted context omitted.

I’ve read some very user hostile things in my career, but this one is particularly acerbic. It’s a bad look. If I ever grew to hate users this much, I would find a new career. You should consider that.

I'm not being user hostile. I'm being cognizant that the skill levels of users is extremely wide, and to best serve everyone from a UX standpoint, it's best to limit the characters accepted in the input. It protects the user, helps them avoid mistakes.

[flagged]

Re: HTML Form Validation is underused

#274
post #236

Earlier quoted context omitted.

Well the ones I've worked with couldn't care less. Of course they love to show off how good they are to the poor disabled people, but that doesn't mean anything until some government reminds us that we are in breach of contract unless we make our GUI accessible.

this seems like a very mean spirited take on accessibility?

I took from it that [the designers] are all mouth and no trousers – which is fairly common. But "the poor disabled people" seems patronising.

Re: HTML Form Validation is underused

#275
post #273

Earlier quoted context omitted.

I'm not being user hostile. I'm being cognizant that the skill levels of users is extremely wide, and to best serve everyone from a UX standpoint, it's best to limit the characters accepted in the input. It protects the user, helps them avoid mistakes.

[flagged]

Not everyone who disagrees with you is lying. Accusing people is a bad look here on HN. "Assume good faith" is the standard.

You can say "You're wrong". "You're lying", though, is almost never appropriate, and is, in itself, quite hostile.

Re: HTML Form Validation is underused

#276
post #198

Last time I checked, web-browsers today still do not allow you to style the appearance of built-in HTML validation messages [1]; this wouldn't be so bad if Chrome (and Firefox) still conformed to their OS platform UI guidelines (i.e. so it looks system-generated, like how `title=""` tooltips used to be), instead Chrome uses this ugly yellow/orange icon color with black-text on a white background on a bubble with a fi…

I never really understood why people want to style stuff like this. I like how you can express yourself by using colors and layout and stuff like that. But at some point usability is more important than branding.

Sure, but that's not how it works out in practice. It sure looks like everyone just rolls their own. Fun game: can you find any major website that uses the default validation?

This isn't an issue if everyone's an accessibly expert, otherwise we're sacrificing usability.

Re: HTML Form Validation is underused

#277

No it isn’t. It fucking sucks. Most everyone who learns HTML comes across the validation attributes, the god awful built in date pickers and other shit, and they throw it out in favour of custom built better UX implementations. Maybe in the past we would have been clueless because, well, they didn’t exist, but today they do. And they’re junk. Call spade a spade. Don’t call it heavily underused.

It's extremely frustrating to me how reliably the anti-JS crowd on HN promotes this sort of "just use HTML / CSS" content. Having a general purpose programming is obviously beneficial for application development. There is no arguments to not use Javascript besides "some users (ie the people here on HN and virtually no one else) don't like to enable Javascript"

Re: HTML Form Validation is underused

#278
post #236

Earlier quoted context omitted.

plenty of designers say this, often company leadership is the one pushing them to style everything because everyone else does

Well the ones I've worked with couldn't care less. Of course they love to show off how good they are to the poor disabled people, but that doesn't mean anything until some government reminds us that we are in breach of contract unless we make our GUI accessible.

Designers that come from a background of human machine interaction care and will say that. Designers who come from a background of art don't understand what is being talked about and so don't say anything - they tend to only ensure it works on their one devices which they have selected to be the best and ignore everything else.

The second group does make things that look nicer, but the first ensures it can be used. You really want both, but then you need to be careful about who wins when they disagree.

Re: HTML Form Validation is underused

#279
post #198

Last time I checked, web-browsers today still do not allow you to style the appearance of built-in HTML validation messages [1]; this wouldn't be so bad if Chrome (and Firefox) still conformed to their OS platform UI guidelines (i.e. so it looks system-generated, like how `title=""` tooltips used to be), instead Chrome uses this ugly yellow/orange icon color with black-text on a white background on a bubble with a fi…

I never really understood why people want to style stuff like this. I like how you can express yourself by using colors and layout and stuff like that. But at some point usability is more important than branding.

People want to style things to match their page, exactly because consistency is part of usability. Especially given the limitations of browser form validations, you will absolutely need your own validations in addition to any browser validations you use. But your own validations will look different from the browser-provided ones, at least on some browsers. Which will confuse users, hence decreasing usability.

And this also assumes that the browser validations are in any way usable to begin with. I would argue that they are not, and would require some sane styling to become usable in the first place.

Re: HTML Form Validation is underused

#280

Earlier quoted context omitted.

It’s amazing how many login forms are labeled “email” and then don’t have the correct type set.

From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in... > Browsers automatically provide validation to ensure that only text that matches the standard format for Internet email addresses is entered into the input box. Browsers use an algorithm equivalent to the following regular expression: > /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0…

> No support for punycode domains

Really? I tested with a punycode domain on regex101 and it worked fine, do you mean that it only works with ones already converted to punycode?

Post reply on HN