4 ms·
Odd, it makes sense on a technical level when it comes to these ZWJ characters, but hiding the implementation makes sense from Safari’s point of view. I’d actua
by graypegg 4y ago
Odd, it makes sense on a technical level when it comes to these ZWJ characters, but hiding the implementation makes sense from Safari’s point of view. I’d actually prefer that as a UNIVERSAL standard, visible symbols vs characters. (When it comes to UI)
But I can also imagine this is problematic when setting validation rules else where and now there’s a subtle foot gun buried in most web forms.
I guess the thing to learn here is to not rely on maxlength=
- zuhsetaqi 4y agoThe thing every developer should have learned from the beginning is to never rely on anything that comes from user input or client
- turmeric_root 4y agoagreed, i discard user input in all of my apps
- graypegg 4y agoI hope no one is relying on it! But in the context of a regular user, maxlength measuring all chars is failsafe (user is allowed to submit a long string that should be caught by validation elsewhere) vs measuring visible chars is faildangerous (user can’t submit a valid string because the front end validation stops them) Which is weird
- Akronymus 4y agoAt work we almost exclusively use backend validation and return a json object with the fields that failed validation + what rules were failed.