﻿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
27270	"Clarify wording of ""A form may include HTML attributes such as maxlength"""	Michael	Tim Graham	"
The documentation reads: ""Just like when using a normal Form, each form in the formset may include HTML attributes such as maxlength for browser validation."" (https://docs.djangoproject.com/en/1.10/topics/forms/formsets/#formset-validation)

NB: **form** may include HTML attributes such as maxlength.

What astonishes me: this is not the form that may include maxlength. This is a **field in Django and input tag in HTML**. Well, a form can contain maxlength neither in Django nor in HTML as far as I know.


Example:

{{{
class ArticleForm(forms.Form):
    title = forms.CharField(max_length=5)
}}}



Which results in:


{{{
<table>
    <tr>
        <th>
            <label for=""id_form-0-title"">Title:</label>
        </th>
        <td>
            <input id=""id_form-0-title"" maxlength=""5"" name=""form-0-title"" type=""text"" value=""Test"" />
        </td>
    </tr>
</table>
}}}


Offered wording: Just like when using a normal Form, **each form field in each form in the formset** may include HTML attributes such as maxlength for browser validation."	Cleanup/optimization	closed	Documentation	1.10	Normal	fixed	formset		Accepted	0	0	0	0	0	0
