This project is archived and is in readonly mode.

#5536 ✓resolved
lars (at pinds)

data-confirm and data-method don't work together in Internet Explorer 8

Reported by lars (at pinds) | September 2nd, 2010 @ 05:48 PM

If you have this code:

  <%= link_to "Click me", "javascript:alert('clicked')", :confirm => "Are you sure?", :method => :delete %>

Then in IE8, you'll first see the alert-box that says "clicked", then the confirm-box saying "Are you sure?".

Thus, the link gets clicked regardless of whether we click OK or Cancel in the confirm dialog.

Not good if the link is destructive (which it'll usually be if you're using the confirm box).

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>

Tags

Pages