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

magico’s picture

Version: 4.7.2 » x.y.z

Confirmed.

chx’s picture

Priority: Normal » Minor
peterx’s picture

Version: x.y.z » 5.0

login also conflicts with search. http://drupal.org/node/111719 contains a change to login.

alexmarkley’s picture

The 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.)

dave reid’s picture

Version: 5.0 » 7.x-dev

Bumping version to confirm on latest Drupal.

dave reid’s picture

Version: 7.x-dev » 6.x-dev

I 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.

dave reid’s picture

Version: 6.x-dev » 5.x-dev

Not a bug in 6.x. Moving back to 5.x

dave reid’s picture

Title: Duplicate XHTML ID class in form causes W3C validation error » Duplicate form IDs cause XHTML and form validation errors

Drupal 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.

dave reid’s picture

Status: Active » Closed (duplicate)

And 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.