News for hackers. Stuff that matters.
Re:Htmx Is the Future by petepete on Friday May 05, 2023 @03:26PM (#35834019)
> It's poor UX.

It's not as easy as that. Showing validation while people are editing can be even worse, especially for less-technically able users or people using assistive technology.

Having an announcement tell you your password isn't sufficiently complex when you're typing in the second letter might not be bad for us, but how does that work for a screen reader?

Re:Htmx Is the Future by emodendroket on Friday May 05, 2023 @04:01PM (#35834438)
That seems like it’s resolved by waiting for a focus change event.
Re:Htmx Is the Future by petepete on Saturday May 06, 2023 @05:15AM (#35839590)
Not really. GOV.UK Design System team have done lots of research into this and their guidance says:

> Generally speaking, avoid validating the information in a field before the user has finished entering it. This sort of validation can cause problems - especially for users who type more slowly

https://design-system.service.gov.uk/patterns/validation/

Re:Htmx Is the Future by emodendroket on Saturday May 06, 2023 @11:54AM (#35842579)
Not seeing how that’s inconsistent with evaluating when the user goes to the next field.