[wp-trac] [WordPress Trac] #47728: Comment's form displaying validation message on the same page instead of directing user to new page & displaying errors.

WordPress Trac noreply at wordpress.org
Fri Jul 26 13:39:31 UTC 2019


#47728: Comment's form displaying validation message on the same page instead of
directing user to new page & displaying errors.
-------------------------+------------------------
 Reporter:  AkSDvP       |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Comments     |     Version:
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |     Focuses:
-------------------------+------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch =>
 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi @AkSDvP, welcome to WordPress Trac! Thanks for the ticket.

 Replying to [comment:1 pento]:
 > `comment_form()` adds the `required` attribute to the `<input>` fields,
 so your browser should show a warning when they're not filled out.

 It does add the `required` attribute, 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/47728#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list