summaryrefslogtreecommitdiff
path: root/docs/ref/forms/widgets.txt
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-07-21 22:05:17 -0700
committerTim Graham <timograham@gmail.com>2016-08-04 19:16:54 -0400
commit50e299dbfbbfd796e63e7e13b4566cf69d2c4acb (patch)
treee099779317d600e23cdf45f2e7c0b5a1e69791d8 /docs/ref/forms/widgets.txt
parentebed9ee8d5e4268d9393261633b2c23cffd426fc (diff)
Fixed #26928 -- Changed forms' checked attribute to HTML5 boolean style.
Diffstat (limited to 'docs/ref/forms/widgets.txt')
-rw-r--r--docs/ref/forms/widgets.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index aae92a37c9..6af97469c9 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -11,6 +11,10 @@ A widget is Django's representation of an HTML input element. The widget
handles the rendering of the HTML, and the extraction of data from a GET/POST
dictionary that corresponds to the widget.
+The HTML generated by the built-in widgets uses HTML5 syntax, targeting
+``<!DOCTYPE html>``. For example, it uses boolean attributes such as ``checked``
+rather than the XHTML style of ``checked='checked'``.
+
.. tip::
Widgets should not be confused with the :doc:`form fields </ref/forms/fields>`.