Bug Tracker

Opened 7 years ago

Closed 7 years ago

#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:
Blocked by: Blocking:

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 (2)

comment:2 Changed 7 years ago by Jason Moon

Resolution: fixed
Status: newclosed

Fix #11796. Preserve oldIE change delegation on clone. Closes gh-789.

Changeset: 4757881759931bfddf32c26de6831f888b8cd20a

Note: See TracTickets for help on using tickets.