Oddbean new post about | logout
 🆕 blog! “Improving the WordPress Comments Form with Client-Side Validation”

If you use WordPress's HTML5 comments, there's an annoying little gotcha. There's a four year old bug which prevents client-side form validation. HTML allows <input> elements to have a required attribute. In theory, that means the form shouldn't submit until the input is filled in. Sadly, Word…

👀 Read more: https://shkspr.mobi/blog/2023/10/improving-the-wordpress-comments-form/
⸻
#HowTo #HTML #php #wordpress