Opened 6 years ago

Closed 3 years ago

#17083 closed enhancement (fixed)

[patch] [cla] dojo._ioSetArgs() should use document.URL if form action is not provided

Reported by: Thomas Bachem Owned by: dylan
Priority: undecided Milestone: 1.11
Component: IO Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:

Description

A <form> element without an action attribute defined submits to the document.URL's location by default. All major browsers do this since I can think, and it is now also defined in the HTML5 spec:

"The action IDL attribute must reflect the content attribute of the same name, except that on getting, when the content attribute is missing or its value is the empty string, the document's address must be returned instead." (http://www.w3.org/html/wg/drafts/html/master/forms.html#attr-fs-action)

So we should improve dojo/xhr, specifically dojo._ioSetArgs(), to handle an empty action attribute accordingly when using the form property with dojo/xhr.

Attachments (1)

DojoXhrFormWithoutActionAttr.patch (532 bytes) - added by Thomas Bachem 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by Thomas Bachem

comment:1 Changed 6 years ago by bill

Component: GeneralIO
Owner: set to Bryan Forbes

comment:2 Changed 5 years ago by Damien Mandrioli <dmandrioli@…>

In 879ebdfc8c13df1758bcecc053d77394a2582768/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:3 Changed 5 years ago by Damien Mandrioli

Sorry, wrong commit reference. The correct one is #17683.

comment:4 Changed 3 years ago by dylan

Milestone: tbd1.11
Owner: changed from Bryan Forbes to dylan
Status: newassigned

comment:5 Changed 3 years ago by dylan

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.