﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36828	Django form fields render into invalid HTML	Johannes Maron		"Howdy,

Django 6 introduced unannounced changes to the default form rendering. Forms render with a fieldset, not a label, by default now.

I just noticed that fields render a `for`-attribute into a `legend`-tag. This isn't valid HTML5 according to spec: https://html.spec.whatwg.org/#the-legend-element

Furthermore, the use of a fieldset/legend replaces the `label`-tag. However, input labels are required as of WCAG 2.1.

Since Django must be WCAG2.2 AAA compliant, we might even want to patch all supported versions. However, this would mean shippping a rendering change in a bugfix.

My current impulse would be to drop the `for` attribute in all supported versions for valid HTML and to enforce labels for WCAG compliance in 6.1

Cheers!
Joe"	Bug	new	Forms	dev	Normal		accessibility	Johannes Maron	Unreviewed	0	0	0	0	0	0
