Ticket #6248 (closed defect: duplicate)

Opened 8 months ago

Last modified 5 months ago

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

Reported by: guest Owned by: doughays
Priority: normal Milestone: 1.1
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc: kris@…

Description (last modified by doughays) (diff)

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

Changed 8 months ago by doughays

  • owner set to doughays

Changed 8 months ago by doughays

  • milestone set to 1.2

Changed 5 months ago by doughays

  • status changed from new to closed
  • resolution set to duplicate
  • description modified (diff)
  • milestone changed from 1.2 to 1.1

Dup of #5746. Fixed in [12261].

Note: See TracTickets for help on using tickets.