Opened 11 years ago
Closed 11 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:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix #11796. Preserve oldIE change delegation on clone. Closes gh-789.
Changeset: 4757881759931bfddf32c26de6831f888b8cd20a
Fix can be seen here: http://jsfiddle.net/MoonScript/hcAYz/1/
Pull request: https://github.com/jquery/jquery/pull/789