This project is archived and is in readonly mode.

#6312 ✓stale
Tamer Salama

unobstructive Delete action links are not working in IE7

Reported by Tamer Salama | January 18th, 2011 @ 11:05 PM

  • Rails 3.0.1
  • IE 7.0.537x
  • Prototype version 1.7
  • Windows XP

The delete link actions are throwing "Error: Object doesn't support this property or method". The click is firing and forwarding the taking the user to the show page.


<a href="/controller/id" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Delete</a>

rails.js line 110 appears to be the cause

element.parentNode.insert(form);

untested fix: replacing the .insert(form) call with .appendChild(form) seems to work.

The appendChild() call was substituted with insert() in a recent commit:
https://github.com/rails/rails/commit/f61d923d284062b4e4864d81c6031...

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>

People watching this ticket

Pages