﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11725	"Unable to have label tags without a ""for"" attribute in form widgets"	Denis Martinez <deuns.martinez@…>	Sergey Kolosov	"In some cases I want to use a form widget without an input, such as pure javascript or iframe
(recaptcha_django in my case).

{{{ form.as_p() }}} generates a label tag with an unmatched id: {{{ <label for=""id_recaptcha""> }}}.

This makes my page invalid in HTML5.

I tried to override id_for_label like this in my widget's code:

{{{
    def id_for_label(self, id_):
        return None
}}}

which gives {{{ <label for=""None""> }}}.

Anyway, I believe that this case should be treated adequately, because the docstring
states that id_for_label can return None values.
"	New feature	closed	Forms	1.1	Normal	fixed	forms label for none dceu13	eromijn@…	Ready for checkin	1	0	0	0	0	0
