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

New pages: HTML<form>FormEnctype #36278

Merged
merged 4 commits into from
Oct 15, 2024
Merged

New pages: HTML<form>FormEnctype #36278

merged 4 commits into from
Oct 15, 2024

Conversation

estelle
Copy link
Member

@estelle estelle commented Oct 9, 2024

part of #35544

@estelle estelle requested a review from a team as a code owner October 9, 2024 05:32
@estelle estelle requested review from wbamberg and removed request for a team October 9, 2024 05:32
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Preview URLs

Flaws (4)

URL: /en-US/docs/Web/API/HTMLButtonElement/formEnctype
Title: HTMLButtonElement: formEnctype property
Flaw count: 2

  • macros:
    • /en-US/docs/Web/API/HTMLButtonElement/formNoValidate does not exist
    • /en-US/docs/Web/API/HTMLButtonElement/formTarget does not exist

URL: /en-US/docs/Web/API/HTMLInputElement/formEnctype
Title: HTMLInputElement: formEnctype property
Flaw count: 2

  • macros:
    • /en-US/docs/Web/API/HTMLInputElement/formNoValidate does not exist
    • /en-US/docs/Web/API/HTMLInputElement/formTarget does not exist

(comment last updated: 2024-10-15 19:03:14)


The **`formEnctype`** property of the {{domxref("HTMLButtonElement")}} interface is the {{Glossary("MIME_type", "MIME type")}} of the content sent to the server when the form is submitted. It reflects the value of the `<button>`'s [`formenctype`](/en-US/docs/Web/HTML/Element/button#formenctype) attribute.

The value overrides the {{domxref("HTMLFormElement.enctype", "enctype")}} property of the {{domxref("HTMLFormElement")}} interface if the form is submitted via the button. This property can be retrieved or set. If not set, the value is the empty string (`""`).
Copy link
Member

@Josh-Cena Josh-Cena Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this property only valid for type="submit" buttons?

@estelle estelle merged commit b44ac90 into main Oct 15, 2024
9 checks passed
@estelle estelle deleted the formenctype branch October 15, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants