This project is archived and is in readonly mode.

#4108 ✓resolved
dcgrigsby

rails/jquery-ujs links broken in IE; patch attached

Reported by dcgrigsby | March 4th, 2010 @ 07:14 PM

This ticket is for rails/jquery-ujs [ http://github.com/rails/jquery-ujs ]

Unobtrusive javascript links with jquery don't work in Internet Explorer (tested on version 8).

When jquery-ujs attempts to append the form responsible for handling data-method links the form is not properly closed. It works under FF, and Safari/Chrome, not on IE.

Changing line 89 from:

form = $('<form method="post" action="'+href+'">'),

to:

form = $('<form method="post" action="'+href+'" />'),

Resolves the problem.

Patch attached.

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