Opened 12 years ago
Closed 11 years ago
#22792 closed enhancement (fixed)
Cannot change name attribute of comment submit button
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.4.2 |
Component: | Comments | Keywords: | has-patch |
Focuses: | template | 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()).
Attachments (2)
Change History (13)
This ticket was mentioned in IRC in #wordpress-dev by aubreypwd. View the logs.
11 years ago
#6
@
11 years ago
- Focuses template added
- Keywords dev-feedback added; needs-docs removed
22792.diff looks good to me. Could use dev feedback on whether this is a possibility for merge.
I'm changing this type to a bug as "submit" is a namespace that shouldn't be used.