Skip to content

Commit

Permalink
added a note about disabling HTML5 validation by the user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 4, 2011
1 parent 2b75669 commit cc0468b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,14 @@ the label, errors and HTML form widget of each field inside a ``div`` tag
by default. In the :ref:`form-theming` section, you'll learn how
the ``form_row`` output can be customized on many different levels.

.. tip::

As of HTML5, user agents can interactively validate the form
"constraints". Generated forms take full advantage of this new feature by
adding sensible HTML attributes. It can however be disabled by using the
``novalidate`` attribute on the ``form`` tag or ``formnovalidate`` on the
submit tag.

Rendering each Field by Hand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

1 comment on commit cc0468b

@marijn
Copy link
Contributor

@marijn marijn commented on cc0468b Jun 4, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but this doesn't validate for non HTML5 pages :-/

Please sign in to comment.