Ticket #9587 (closed bug: fixed)
Cloning a div with an object causes error in IE8
| Reported by: | Motty | Owned by: | rwaldron |
|---|---|---|---|
| Priority: | high | Milestone: | 1.6.3 |
| Component: | manipulation | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When a div that contains an object is cloned in IE8, the following error is seen.
SCRIPT5007: Unable to get value of the property 'nodeType': object is null or undefined jquery-1.6.js, line 5769 character 2
This only happens in IE8 with jQuery version 1.5+. If I change this jsFiddle demo ( http://jsfiddle.net/Mottie/zQxgH/) to jQuery version 1.4.4 or older, the error doesn't occur.
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to rwaldron
- Priority changed from undecided to high
- Status changed from new to assigned
- Component changed from unfiled to manipulation
comment:4 Changed 23 months ago by john
- Milestone changed from 1.next to 1.7
Confirmed in bug triage.
comment:5 Changed 23 months ago by anonymous
Experiencing this on IE9 (9.0.8112.16421) also. Hoping for a 1.5.x patch.
comment:6 Changed 23 months ago by rwaldron
There will not be a 1.5.x patch as jQuery has just released 1.6.2 - you can expect this to land in 1.7
comment:7 Changed 22 months ago by Dave Methvin
- Status changed from assigned to closed
- Resolution set to fixed
Merge pull request #412 from rwldrn/9587
jQuery.clone() check destination child nodes are not null. Fixes #9587
Changeset: b5a16ead1ae2b7449c442c151299f9f456c03942
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
