This project is archived and is in readonly mode.
link_to :method may append FORM within FORM
Reported by Jan Dudek | February 14th, 2009 @ 07:29 PM | in 2.x
At the moment link_to :method => ... creates JavaScript that appends a FORM to the document (and then submits it). Form is appended as a sibling of link element, so if you use link_to :method => ... within a form, you'll get nested FORM elements, which is explicitly prohibited by specification [1]. The solution is to append the form to BODY element, which should guarantee, that we don't nest forms.
Comments and changes to this ticket
-
Pratik March 9th, 2009 @ 02:22 PM
- Assigned user set to josh
- State changed from new to incomplete
- Title changed from [patch] link_to :method may append FORM within FORM to link_to :method may append FORM within FORM
Patch should have tests too.
-
Pratik March 13th, 2009 @ 05:26 PM
- State changed from incomplete to new
-
josh March 14th, 2009 @ 04:27 PM
- State changed from new to open
-
josh May 17th, 2009 @ 04:40 PM
- State changed from open to wontfix
I don't think its worth it to apply this to the 3.0 branch since its going get wiped out by the "agnostic" stuff
-
Jason Morrison June 9th, 2009 @ 03:41 PM
Can this be applied to the 2.x branch? I understand that it will be obviated eventually, but this would be fantastic to have in 2.x.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>