Opened 11 years ago

Closed 11 years ago

#6248 closed defect (duplicate)

Form widget should use "application/x-www-form-urlencoded" for default enctype

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit Version: 1.0
Keywords: Cc: kris@…
Blocked By: Blocking:

Description (last modified by Douglas Hays)

The 1.0.2 version of the dijit.form.Form widget defaults enctype to "multipart/form-data". This means that the following won't work:

<form id="fooForm" dojoType="dijit.form.Form" action="/foo" method="post">

Instead, this must be used:

<form id="fooForm" dojoType="dijit.form.Form" action="/foo" method="post" enctype="application/x-www-form-urlencoded">

Not a huge deal, but the HTML 4.01 spec defines "application/x-www-form-urlencoded" as the default (http://www.w3.org/TR/html401/interact/forms.html#adef-enctype), so it was a surprise to see that the Form widget uses something different.

Change History (3)

comment:1 Changed 11 years ago by Douglas Hays

Owner: set to Douglas Hays

comment:2 Changed 11 years ago by Douglas Hays

Milestone: 1.2

comment:3 Changed 11 years ago by Douglas Hays

Description: modified (diff)
Milestone: 1.21.1
Resolution: duplicate
Status: newclosed

Dup of #5746. Fixed in [12261].

Note: See TracTickets for help on using tickets.