Opened 12 years ago
Closed 11 years ago
#6420 closed bug (invalid)
change event originating from vanilla JS doesn't propagate to jQuery bound handler in iE
Reported by: | thetoolman | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | event | Version: | 1.4.2 |
Keywords: | ie6 change | Cc: | |
Blocked by: | Blocking: |
Description
Change events bound to inputs don't receive events originating from vanilla javascript fireEvent/dispatchEvent trigger. iE only;
Attachments (1)
Change History (9)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Bug and fix documented here :
http://forum.jquery.com/topic/how-do-i-get-ie6-to-fire-jquery-change-event-without-using-jquery
comment:3 Changed 12 years ago by
Milestone: | 1.4.2 → 1.4.3 |
---|---|
Priority: | → undecided |
Unfortunately the patch as described there won't have the desired effect - it'll cause many more change events to fire (when we don't want them to). I'm not sure if this is something that we're going to focus on fixing right away. I'm keeping it in mind, though.
comment:4 Changed 12 years ago by
Status: | new → open |
---|
comment:7 Changed 11 years ago by
Priority: | undecided → low |
---|
comment:8 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | open → closed |
This code won't work properly because it checks for attachEvent first. In IE9 and Opera both attachEvent and addEventListener exist; jQuery uses addEventListener for that case.
Here is my test case and fix; ensure you try it in iE !
http://github.com/thetoolman/jquery/commit/a228013a706999df8dd3f70508c4f1b4298b2c21