Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9587 closed bug (fixed)

Cloning a div with an object causes error in IE8

Reported by: Motty Owned by: Rick Waldron
Priority: high Milestone: 1.6.3
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


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

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledmanipulation
Owner: set to Rick Waldron
Priority: undecidedhigh
Status: newassigned

comment:4 Changed 12 years ago by john

Milestone: 1.next1.7

Confirmed in bug triage.

comment:5 Changed 12 years ago by anonymous

Experiencing this on IE9 (9.0.8112.16421) also. Hoping for a 1.5.x patch.

comment:6 Changed 12 years ago by Rick Waldron

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

Last edited 12 years ago by Rick Waldron (previous) (diff)

comment:7 Changed 12 years ago by Dave Methvin

Resolution: fixed
Status: assignedclosed

Merge pull request #412 from rwldrn/9587

jQuery.clone() check destination child nodes are not null. Fixes #9587

Changeset: b5a16ead1ae2b7449c442c151299f9f456c03942

comment:8 Changed 12 years ago by dmethvin

Note: See TracTickets for help on using tickets.