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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12561

Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Simetrical+w3cbug@gmail.com

--- Comment #3 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2011-04-27 22:36:03 UTC ---
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.)

-- 
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 Wednesday, 27 April 2011 22:36:06 UTC