Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ your form, just like in the original version of **WTForms HTML5**.

## Supported Auto–Attributes

- **required**
- **required**

Is set if the field has the _required_ flag set. This happens i.e. if you use
the _DataRequired_ or _InputRequired_ validator. The `required` attribute is
used by browsers to indicate a required field (and most browsers won't
activate the forms action unless all required fields have content).

- **invalid**
- **invalid**

If the field got any validation errors, the CSS class _invalid_ is added. The
`invalid` class is also set by browsers, if they detect errors on a field.
The validation errors detected by your code, are then by default styled in
the same way as browser generated errors.

- **min** / **max** and **minlength** / **maxlength**
- **min** / **max** and **minlength** / **maxlength**

If either _Length_ or _NumberRange_ is used as a validator to set minimal
and / or maximal values, the corresponding INPUT attribute is
set (based on which validator is used). This allows for browser based
validation of the values.

- **title**
- **title**

If no _title_ is provided for a field, the _description_ (if one is set) is
used for the `title` attribute.
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tox==3.24.5 # via -r requirements/ci.in
tqdm==4.66.3 # via twine
twine==3.7.1 # via -r requirements/dev.in
urllib3==1.26.19 # via requests
virtualenv==20.13.0 # via pre-commit, tox
virtualenv==20.26.6 # via pre-commit, tox
webencodings==0.5.1 # via bleach
werkzeug==2.0.2 # via -r requirements/tests.in
wheel==0.38.1 # via pip-tools
Expand Down
Loading