Modify ↓
Ticket #11796 (closed bug: fixed)
Change event doesn't bubble in oldIE when content is copied via .html()
| Reported by: | MoonScript | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
This is happening because the content is being retrieved via the .html() function, which includes the jQuery change-delegation artifact on the element: _change_attached="true". When that HTML string is then repopulated into the DOM, the change event does not bubble, because it already contains the _change_attached attribute, so jQuery skips it.
This is very similar to ticket #10878 (but with html instead of clone) and #11649.
You can see the issue here in IE < 9: http://jsfiddle.net/MoonScript/hcAYz/
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fix can be seen here: http://jsfiddle.net/MoonScript/hcAYz/1/
Pull request: https://github.com/jquery/jquery/pull/789