[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

--- Comment #5 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2011-04-28 23:06:44 UTC ---
Okay, wait a sec.  <form action=""> is the same as just <form>.  So if you want
to submit to "", just omit the action attribute entirely.  This will in fact
ignore <base>, but that's usually not an issue.  I now assume that the reason
action="" isn't allowed is because it's redundant, although I'm not sure.

(In reply to comment #4)
> 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.

Hmm, good point.  This doesn't actually cause an HTTP request, so it's not very
useful.

> 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).

Actually, this will strip any existing query string, so it's not an acceptable
solution at all.

> A spec could be made so that if the action is ?, then it means to submit to the
> same URL.

No, it cannot.  Browsers' behavior here is well-established and cannot be
changed without really, really, really good reason.

-- 
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 23:06:46 UTC