On 8 July 2010 09:04, Rob Nichols <li...@ruby-forum.com> wrote:
> Marnen Laibow-Koser wrote:
>> Rob Nichols wrote:
>>> Marnen Laibow-Koser wrote:
>>>> Whatever the <form> tag's action is.
>>>
>>> Also, if no action is specified via the form tag, the form is submitted
>>> to the current url.
>>>
>>> So if 'thing/edit/1' contained:
>>>
>>> <form>
>>>   <input type="submit" />
>>> </form>
>>>
>>> The form would be submitted back to 'thing/edit/1'
>>
>> 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'.

How do you know that the next version of FF will do that?  Have you
tested all available browsers?  What about Chinese versions?  If you
develop a website that does not generate valid html then next week an
update to IE may break the website and your clients/users will not be
happy.

Colin

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