W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > April 2011

[Bug 12561] Add the @action in the <form> so that there is a way to submit to the same page

From: <bugzilla@jessica.w3.org>
Date: Thu, 28 Apr 2011 06:49:15 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QFL2J-0003qS-Oi@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12561

--- Comment #4 from brunoais <brunoaiss@gmail.com> 2011-04-28 06:49:14 UTC ---
(In reply to comment #3)
> For legacy compatibility, an empty action is processed in an unexpected way:
> 
> "If action is the empty string, let action be the document's address of the
> form document."
> http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#form-submission-algorithm
> 
> It ignores <base>.  As such, it's better if authors avoid it and use an
> equivalent URL like "#" instead, so that it behaves the same as other URLs.  I
> assume this is the reason it's invalid.
> 
> ("_self" will not work at all -- it will submit to the current URL with the
> last part of the path replaced by the string "_self".  "?" will also submit to
> a different URL than the current one, namely the current URL with the character
> "?" appended, even though this usually will make no difference to the resulting
> resulting.  "#" will submit to the current URL exactly, with base processing.)

In firefox 3.6/3.7 # makes it submit to the same page but not to the same URL
so... not a good idea as the form isn't submitted to the internet. Submitting a
? really makes sense, if specified. Having a ? action does submit to the same
page and does not send any new variables (just that ? is appended to the URL).
A spec could be made so that if the action is ?, then it means to submit to the
same URL. Even with that, I'm still inclined to the "" as the option to submit
to itself.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 28 April 2011 06:49:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:08 UTC