XHTML 1.0 Trans validation fails for - ID "edit-formsingle_token" already defined

jrstmartin - November 12, 2006 - 12:35
Project:Form single
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When I validate my code on w3.org I get the following error in regards to Form Single:

# Error Line 87 column 55: ID "edit-formsingle_token" already defined.

...n" name="edit[formsingle_token]" id="edit-formsingle_token" value="f5de947a78

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

# Info Line 50 column 55: ID "edit-formsingle_token" first defined here.

...n" name="edit[formsingle_token]" id="edit-formsingle_token" value="7ffa1a8ffc

Here are the entire lines:

Line 87:
<input type="hidden" name="edit[formsingle_token]" id="edit-formsingle_token" value="fa72f24892ebedc3ba0711dad16fffd3"  />

Line 50:
<input type="hidden" name="edit[formsingle_token]" id="edit-formsingle_token" value="35dc086f37f02595b9d3f5e7934674a3"  />

I would love it if my code would validate for XHTML 1.0 Transitional - is there any way to fix this? Or is this needed for Form Single to operate?

Thanks

#1

robertDouglass - November 12, 2006 - 13:04

Thanks for the report... I'll look into it when I get a chance.

#2

jrstmartin - December 21, 2006 - 19:07

Oh, oops, I guess those input tags in formsingle.module that I referred to would have nothing to do with the problem (I'm not hard-coding those into my themes). But anyways, I still can't validate due to the multiple input tags/id attributes.

Good book too, by the way. Thanks for writing it :)
_/03

 
 

Drupal is a registered trademark of Dries Buytaert.