﻿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
31361	"Fix admin invalid HTML5 empty action="""" attribute."	Jon Dufresne	Jon Dufresne	"The attribute `action=""""` (empty string) on the `<form>` element is invalid HTML5. The [https://html.spec.whatwg.org/#attr-fs-action spec] says:

> The action and formaction content attributes, if specified, must have a value that is a valid non-empty URL potentially surrounded by spaces.

Emphasis on non-empty. The action attribute is allowed to be omitted, in which case the current URL is used which is the same behavior as now.

The [https://html5.validator.nu/ nu validator] reports the message:

> Error: Bad value for attribute action on element form: Must be non-empty.

In the admin, this can occur in two templates:

https://github.com/django/django/blob/3.0.4/django/contrib/admin/templates/admin/auth/user/change_password.html#L22
https://github.com/django/django/blob/3.0.4/django/contrib/admin/templates/admin/change_form.html#L36
"	Cleanup/optimization	closed	contrib.admin	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
