Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #31361 -- Fixed invalid action="" in admin forms. #12564

Merged
merged 2 commits into from
Mar 16, 2020
Merged

Fixed #31361 -- Fixed invalid action="" in admin forms. #12564

merged 2 commits into from
Mar 16, 2020

Conversation

jdufresne
Copy link
Member

@felixxm felixxm changed the title Fixed #31361 -- Fixed invalid action="" attribute in admin HTML. Fixed #31361 -- Fixed invalid action="" in admin forms. Mar 16, 2020
@felixxm
Copy link
Member

felixxm commented Mar 16, 2020

@jdufresne Thanks 👍

The attribute action="" (empty string) on the <form> element is invalid
HTML5. The spec (https://html.spec.whatwg.org/#attr-fs-action) 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.
@felixxm felixxm merged commit 3857a08 into django:master Mar 16, 2020
@jdufresne jdufresne deleted the form-url branch March 16, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants