News for hackers. Stuff that matters.
Re:Open-UI: Maintain an open standard for UI and promote its... by blacksmith_tb on Wednesday March 12, 2025 @06:38PM (#43348442)
Don't we already have that basically, with HTML5 form validation[1]? Often just using the pattern attribute is enough to make sure you don't get a phone number in your email field etc.

1: https://developer.mozilla.org/en-US/docs/Learn_web_developme...

Re:Open-UI: Maintain an open standard for UI and promote its... by extra88 on Wednesday March 12, 2025 @09:20PM (#43349469)
Yes, but it's user agent UI which is not really good in any of them.

Good error messaging is important and having styleable semantic elements would be helpful. It's tricky because you often need more than one error message per input, not just "required" but too big, too small, wrong format, etc.

Re:Open-UI: Maintain an open standard for UI and promote its... by notpushkin on Thursday March 13, 2025 @12:28AM (#43350396)
Right. You can use browser validation and extract the error messages with JavaScript (to style them yourself, e.g. [1]), but there’s no solution without JS yet.

[1]: https://github.com/notpushkin/evilmartians-exercise-auth/blo...