This project is archived and is in readonly mode.
browser compatibility changes for prototype-ujs
Reported by Marc Schütz | March 8th, 2010 @ 07:47 PM | in 3.0.2
The attached patch works around the following problems in the prototype rails.js:
Element.findElement("a[data-remote]")
etc. didn't work in Konqueror. It seems not to return; didn't investigate further. My workaround is to check whether the current element is a anchor and hasdata-xxx set
. This makes more sense anyway, because I cannot think of a use case where we would take the url of a parent element instead of the one that triggered the click event.- The submit event doesn't bubble in IE (as was already noted in a comment). I've worked around this by observing the click event of the form's submit button instead (which is also fired when the button is pressed via keyboard).
Tested in FF 3.6, Konqueror 4.4.0, IE 8 (normal and in compat mode).
Comments and changes to this ticket
-
Marc Schütz March 12th, 2010 @ 10:21 AM
Updated patch to make
link_to
with images work, as suggested by Robs in #4156. -
Marc Schütz March 12th, 2010 @ 11:33 AM
As regards Konquerors inability to cope with
Element.findElement("xxx")
, it doesn't work in Konqueror 3.5.9, but it does work in Konqueror 4.4.1. So I removed the changes for Konqueror again.New patches tested in FF 3.6, Konqueror 4.4.1, IE 6 and IE 8 (normal and compat).
-
Jeremy Kemper March 12th, 2010 @ 06:33 PM
- State changed from new to open
- Assigned user set to josh
- Milestone cleared.
-
josh March 12th, 2010 @ 06:40 PM
- State changed from open to invalid
The new css selector stuff requires edge prototype.
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
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
Attachments
Referenced by
- 4156 link_to doesn't behave when using image_tag and :confirm or :remote the issue is still not solved, since #4133 was marked inv...
- 4114 Delete link doesnt work in IE That's almost certainly related to #4133. Can you try whe...
- 4156 link_to doesn't behave when using image_tag and :confirm or :remote Please have a look at #4133.
- 4156 link_to doesn't behave when using image_tag and :confirm or :remote Marking as duplicated of #4133.