Skip to main content

Bug Tracker

Side navigation

#11796 closed bug (fixed)

Opened May 21, 2012 09:49PM UTC

Closed May 23, 2012 01:34AM UTC

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/

Attachments (0)
Change History (2)

Changed May 22, 2012 02:41PM UTC by MoonScript comment:1

Changed May 23, 2012 01:34AM UTC by Jason Moon comment:2

resolution: → fixed
status: newclosed

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

Changeset: 4757881759931bfddf32c26de6831f888b8cd20a