Closed (duplicate)
Project:
Drupal core
Version:
5.x-dev
Component:
contact.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2006 at 10:58 UTC
Updated:
8 Apr 2011 at 12:22 UTC
The contact module form uses the XHTML ID selector of 'edit-name'. The User login block also uses this same ID selector.
Having an anonymous user on the site, on a contact page results in a clash of XHTML IDs, breaking W3C validation.
I'm assuming it will be easier to change the field name of the contact module form, rather than user login block.
Comments
Comment #1
magico commentedConfirmed.
Comment #2
chx commentedComment #3
peterx commentedlogin also conflicts with search. http://drupal.org/node/111719 contains a change to login.
Comment #4
alexmarkley commentedThe whole "auto-generated form ids aren't unique enough" problem is pretty serious for me, so I'm subscribing to this issue. (The only intelligent thing I have to say about this family of issues.)
Comment #5
dave reidBumping version to confirm on latest Drupal.
Comment #6
dave reidI filled out the contact form on D7 having an empty login block also on the same page...no error. Moving back to 6.x for verification.
Comment #7
dave reidNot a bug in 6.x. Moving back to 5.x
Comment #8
dave reidDrupal 5 doesn't appear to protect against non-unique form names. This would appear to be a bigger problem for Drupal 5 as a whole. Not sure how likely it would be fixed here.
Comment #9
dave reidAnd I found the proper issue: #111719: FAPI fails to check auto-generated IDs for uniqueness - XHTML validation fails.. This is now a duplicate. There look like several patches that can be applied to Drupal 5 that might help with this problem.