Re: RadioWidget patch (render items using the LABEL tag)
Bertrand Croq <bertrand.croq-i1BwEb4NmXRWk0Htik3J/[email protected]> Mon, 02 Jan 2006 11:15:28 +0100
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Message-ID | <[email protected]> |
Clemens Klein-Robbenhaar a =E9crit : > I have figured out that one can drop the "for"-attribute of the label; > it then automatically applies to the single form field inside of the > label. > This not only makes the code a little simpler but also makes sure the > label > applies to the correct radio button if the same form is rendered twice > for some reason. (With the "for"/"id" attributes it always applies to > the box > in the form rendered first.) > > Dropping the "for" works at least with mozilla 1.7. Please tell me it > it does > not work for some browser where the label with a "for" attribute is > assumed to work; > I will revert to the original patch in that case. You are right, the "for" attribute is not needed in the kind of forms rendered by Formulator. Regards, --=20 Bertrand Croq - FreesKop - Avenue Robert Schuman - 35170 BRUZ http://www.freeskop.com/ - Tel: 02 99 05 04 56 - Fax: 02 99 05 96 40