The autofocus attribute in auth forms is rendered as `autofocus=""`, but
it could be rendered as an HTML5 boolean attribute `autofocus`. As docs
now state Django HTML specifically targets HTML5, might as well use the
boolean syntax for all boolean attributes.
Example attribute:
https://github.com/django/django/blob/38cf9ef390eb0cd0703d99893f826153865f6ba6/django/contrib/auth/forms.py#L98
--
Ticket URL: <https://code.djangoproject.com/ticket/27136>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
* stage: Unreviewed => Ready for checkin
Comment:
[https://github.com/django/django/pull/7164 PR] looks good. I'm not sure
it merits a release note.
--
Ticket URL: <https://code.djangoproject.com/ticket/27136#comment:1>
Comment (by claudep):
I would also for not bloating the release notes with such "details".
--
Ticket URL: <https://code.djangoproject.com/ticket/27136#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"ae98d40c358af2e14bac03d9a3a2dc99701aa13a" ae98d40c]:
{{{
#!CommitTicketReference repository=""
revision="ae98d40c358af2e14bac03d9a3a2dc99701aa13a"
Fixed #27136 -- Changed auth forms' autofocus attribute to HTML5 boolean
syntax.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27136#comment:3>