Opened 5 months ago

Last modified 5 months ago

#22792 new defect (bug)

Cannot change name attribute of comment submit button

Reported by: willi828 Owned by:
Priority: normal Milestone: Awaiting Review
Component: Comments Version: 3.4.2
Severity: normal Keywords:
Cc:

Description

This prevents developers from using client-side validation, as the name attribute being set to "submit" interferes with the .submit() method. I can change the id and the label of the submit button, but that is all.

The default WordPress server-side validation is unacceptable from a user-experience standpoint.

This would be the solution for me, which I find cumbersome (http://wordpress.stackexchange.com/questions/65001/error-when-posting-comment-form-the-error-is-typeerror-eh-is-not-a-function).

The developer should be allowed to set the name attribute of the submit button (maybe through the use of comment_form()).

Change History (1)

  • Type changed from feature request to defect (bug)

I'm changing this type to a bug as "submit" is a namespace that shouldn't be used.

Note: See TracTickets for help on using tickets.