Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2008 at 09:09 UTC
Updated:
15 Mar 2009 at 15:01 UTC
There are pages where you come across multiple form submit buttons, for example pages with both a search box and a comment options form, like the following:
http://drupal.org/comment/reply/270093
In the page code above you have
line 38:
<input type="submit" name="op" id="edit-submit" value="Search" class="form-submit" />
line 96:
<input type="submit" name="op" id="edit-submit" value="Post comment" class="form-submit" />
where "edit-submit" is not unique.
Hope this will be fixed in future drupal releases…
Comments
Comment #1
stevenpatzComment #2
IncrediblyKenzi commentedThis is actually a big issue, especially when invoking custom scripting functionality against #edit-submit, or running any kind of automated testing that clicks the edit-submit button.
The obvious fix is to set the search submit button's name to 'search-submit.'
I note that this is now slated for 7.x, but is there any chance of a backport?
Comment #4
lilou commentedSimilar issue : #326527: form id="node-form" declared twice
Comment #5
mr.baileysDuplicate of #111719: FAPI fails to check auto-generated IDs for uniqueness - XHTML validation fails.