Bug Tracker

Ticket #9587 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

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 4 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:2 Changed 4 years ago by rwaldron

comment:4 Changed 3 years ago by john

  • Milestone changed from 1.next to 1.7

Confirmed in bug triage.

comment:5 Changed 3 years ago by anonymous

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

comment:6 Changed 3 years 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

Last edited 3 years ago by rwaldron (previous) (diff)

comment:7 Changed 3 years 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

comment:8 Changed 3 years ago by dmethvin

  • Milestone changed from 1.7 to 1.6.3
Note: See TracTickets for help on using tickets.