#37100 closed enhancement (maybelater)
Comment Section
Reported by: | tejas.acquaintsoft | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | reporter-feedback close |
Focuses: | Cc: |
Description
Suggestion : Comments Validation must be based on the jQuery.
Change History (3)
Note: See
TracTickets for help on using
tickets.
@tejas.acquaintsoft
Howdy, and welcome to Trac! As of WordPress 4.5 the comment form inputs include additional HTML5 validation attributes (see #10377).
As is often the case in WordPress core development, implementing this suggestion initially appears much more straightforward than reality.
I am open to using JavaScript to validate the comment form data, but is there a "one-size-fits-all" solution that fits the needs of every WordPress site?
How would you propose displaying the validation errors within the comment form?
What parameters would you use for validation?
The good news is: theme developers are able to create customized inline validation for their comment forms using JavaScript (or the jQuery library if desired).