This project is archived and is in readonly mode.
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
-
dcgrigsby March 4th, 2010 @ 07:17 PM
- Tag changed from ujs jquery jquery-ujs to jquery, jquery-ujs, ujs
-
Rolf Bjaanes April 13th, 2010 @ 03:17 PM
This should be fixed, but it shouldn't say
form = $('<form method="post" action="'+href+'" />')rather
form = $('<form method="post" action="'+href+'">')to be HTML 5 compliant.
-
Rolf Bjaanes April 13th, 2010 @ 03:19 PM
That should be :
form = $('<form method="post" action="'+href+'"></form>')to be HTML 5 compliant. :)
-
Steve St. Martin April 13th, 2010 @ 04:12 PM
- Tag changed from jquery, jquery-ujs, ujs to jquery, jquery-ujs, resolved, ujs
-
Steve St. Martin April 15th, 2010 @ 02:41 PM
- Assigned user set to Ryan Bigg
-
Ryan Bigg April 15th, 2010 @ 02:43 PM
- State changed from new to resolved
Fixed as mentioned by Steve.
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>