Valentino Gagliardi on Nostr: It’s easy to get carried away when implementing form validation. Few seem to ...
It’s easy to get carried away when implementing form validation. Few seem to remember that a combination of the pattern attribute, CSS :invalid / :user-invalid can do wonders. Pair this with :has for styling/showing form errors, and you’ve got a lovely set of tools to build upon.
#webplatform #html #css
Published at
2024-11-17 17:38:25Event JSON
{
"id": "5a87128e513d02ab3724cccb9344b0a06eda9c539b8274c41361e7c8f30cd3e7",
"pubkey": "0b7a9c1152d08f8f19b0b2645d9e830f85997f1881f0e460d5992a4f82e8fcaa",
"created_at": 1731865105,
"kind": 1,
"tags": [
[
"t",
"webPlatform"
],
[
"t",
"html"
],
[
"t",
"css"
],
[
"proxy",
"https://fosstodon.org/users/gagliardi_vale/statuses/113499511522632841",
"activitypub"
]
],
"content": "It’s easy to get carried away when implementing form validation. Few seem to remember that a combination of the pattern attribute, CSS :invalid / :user-invalid can do wonders. Pair this with :has for styling/showing form errors, and you’ve got a lovely set of tools to build upon.\n\n#webplatform #html #css",
"sig": "faf6bf9a160802b37802cf4e926ce3f7b12a21c463e0866123caf6121cfe5ed7a7f9e35442a76a9085d94491a00bb9bf53a24863f4e2bd64e531cb470cc05b30"
}