This project is archived and is in readonly mode.

#1973 ✓wontfix
Jan Dudek

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.

[1] http://www.w3.org/TR/xhtml1/#pro...

Comments and changes to this ticket

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>

Attachments

Pages