Bug Tracker

Modify

Ticket #11796 (closed bug: fixed)

Opened 12 months ago

Last modified 12 months ago

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

comment:2 Changed 12 months ago by Jason Moon

  • Status changed from new to closed
  • Resolution set to fixed

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

Changeset: 4757881759931bfddf32c26de6831f888b8cd20a

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.