The "Subscriptions interface" block causes an XHTML validation error when placed on any page that includes a button for submitting or saving content (for instance, the "Post comment" button in the comment form). This is because the "Save" button in the block is defined with id="edit-submit", resulting in a duplicate ID.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | subscriptions_ui.submit-id.286292.2.patch | 647 bytes | salvis |
| #1 | subscriptions_ui.submit-id.286292.patch | 703 bytes | salvis |
Comments
Comment #1
salvisI see the problem. It occurs on D5 only — on D6, the second id gets a '-1' appended, so they're different.
There exists an #id property, but it's documented as "INTERNAL". It seems to let me specify the id myself — does anyone know if there's a downside to doing this?
Comment #2
salvisIt needs to be a 'submit' element after all...
Comment #3
Grantovich commentedNot sure if this is still relevant (it's from two years ago), but it seems to answer your question:
http://lists.drupal.org/pipermail/development/2006-January/013025.html
Comment #4
salvisPerfect, thanks! Committed to 5.x-2.x-dev.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.