--
Ticket URL: <https://code.djangoproject.com/ticket/32765>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32765#comment:1>
* type: Bug => Cleanup/optimization
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Agreed, currently it's associated with `<div>` which is not a labelable
element, see [https://html.spec.whatwg.org/multipage/forms.html#attr-
label-for spec].
[https://github.com/django/django/pull/14411 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32765#comment:2>
Old description:
> In the admin, the label element for the `ReadOnlyPasswordHashWidget`
> widget has a 'for' attribute which points to a non-existent HTML ID,
> since the widget just renders text, not an input. There's no labelable
> element for the widget, so the label shouldn't have a 'for' attribute.
New description:
In the admin, the label element for the `ReadOnlyPasswordHashWidget`
widget has a 'for' attribute which points to a non-labelable element,
since the widget just renders text, not an input. There's no labelable
element for the widget, so the label shouldn't have a 'for' attribute.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32765#comment:3>
* owner: nobody => David Sanders
* status: new => assigned
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32765#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"536c155e67fd82ef23975919bd55ccec966f96f8" 536c155e]:
{{{
#!CommitTicketReference repository=""
revision="536c155e67fd82ef23975919bd55ccec966f96f8"
Fixed #32765 -- Removed "for" HTML attribute from
ReadOnlyPasswordHashWidget.
ReadOnlyPasswordHashWidget doesn't have any labelable elements.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32765#comment:5>