﻿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
9478	Default id attribute for form field 'id-field' should be avoided	daveyjoe	nobody	"When django returns a HTML form element generated by the form class it typically looks like:

{{{
<label for=""id_email"">Email:</label> <input id=""id_email"" type=""text"" name=""email"" maxlength=""75"" />
}}}

An id with an underscore in it should be avoided for compatibility and historical reasons, as detailed in the following article: https://developer.mozilla.org/en/Underscores_in_class_and_ID_Names

I suggest the following as a typical output instead:

{{{
<label for=""id-email"">Email:</label> <input id=""id-email"" type=""text"" name=""email"" maxlength=""75"" />
}}}

This change would be backwards incompatible. I reccommend implementing it as a hidden option until 2.0 and then use 'id-field' as the default option."		closed	Forms	1.0		wontfix	forms html css		Unreviewed	0	0	0	0	0	0
