[wp-trac] [WordPress Trac] #49039: JavaScript/jQuery validation for comment form

WordPress Trac noreply at wordpress.org
Thu Dec 19 14:39:27 UTC 2019


#49039: JavaScript/jQuery validation for comment form
-------------------------+------------------------
 Reporter:  guddu1315    |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Comments     |     Version:  5.3.1
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |     Focuses:  ui
-------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi there, thanks for the ticket! Just noting this was previously raised in
 #47728.

 Replying to [comment:1 subrataemfluence]:
 > Rather than adding JavaScript validation, what if we go with `required`
 attributes for mandatory fields.

 The comment form does have `required` attribute for the `<input>` fields,
 however it also has the `novalidate` attribute on the form, which prevents
 client-side validation from being performed due to concerns about browsers
 implementing validation in very different ways, per discussion in #15080.

 We're now re-evaluating that decision in #47595, let's continue the
 discussion there.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49039#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list