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
20684,Support form element attributes with no value,sneethling@…,nobody,"There are a couple of form attributes such as required that was introduced in HTML5 that should not contain a value. For exaple required=""required"" is valid but for example required=""true"" will result in failed validation with true being marked as a bad value.
The correct use would be:
{{{}}}
Currently in forms.py attributes cannot be specified without a value which rely on the author knowing that a value of 'true' not being valid but 'required' being ok. it would be great if Django supports valueless attributes.
Perhaps doing:
{{{
widget=forms.TextInput(
attrs={
'required': ''
}))
}}}
will result in an input of:
{{{}}}",New feature,closed,Forms,dev,Normal,fixed,,loic@… shai@… jcd@…,Accepted,1,0,0,0,0,0