On 8 July 2010 09:04, Rob Nichols <li...@ruby-forum.com> wrote:
> Marnen Laibow-Koser wrote:
>> No.  <form> without an action is invalid HTML, so its behavior is
>> undefined.  An action must always be specified.
>
> Thank you for that comment on what should happen. However, the fact
> remains that if you don't specify a target action, browsers will send
> the submitted data to the current url. Don't confuse 'must' with
> 'should'.

Yet you make the mistake yourself by saying "browsers will" instead of
"browsers *may*".

What action the user agent performs if an 'action' parameter of a form
is anything other than an http(s):// url is undefined... so they're
free to do what they want.
http://www.w3.org/TR/html401/interact/forms.html#h-17.3

If *you* want to be *sure* a form submits how you want, you *must*
include an action parameter. If you don't care what your form does,
then you *should* do whatever you prefer :-)

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to