From 50e299dbfbbfd796e63e7e13b4566cf69d2c4acb Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 21 Jul 2016 22:05:17 -0700 Subject: Fixed #26928 -- Changed forms' checked attribute to HTML5 boolean style. --- docs/ref/forms/api.txt | 21 +++++++++++++++------ docs/ref/forms/widgets.txt | 4 ++++ 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 9e9388344a..de66986e18 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -430,7 +430,7 @@ If the form is bound to data, the HTML output will include that data appropriately. For example, if a field is represented by an ````, the data will be in the ``value`` attribute. If a field is represented by an ````, then that HTML will -include ``checked="checked"`` if appropriate:: +include ``checked`` if appropriate:: >>> data = {'subject': 'hello', ... 'message': 'Hi there', @@ -441,7 +441,12 @@ include ``checked="checked"`` if appropriate:: - + + +.. versionchanged:: 1.11 + + The ``checked`` attribute was changed to use HTML5 boolean syntax rather + than ``checked="checked"``. This default output is a two-column HTML table, with a ```` for each field. Notice the following: @@ -471,6 +476,10 @@ Notice the following: attributes and ``