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/widgets.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref/forms/widgets.txt') 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 +````. 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 `. -- cgit v1.3