Skip to main content

Bug Tracker

Side navigation

#5270 closed bug (wontfix)

Opened September 19, 2009 11:00AM UTC

Closed December 10, 2009 04:39AM UTC

clone() doesn't clone filters in IE6

Reported by: olmokhov Owned by:
Priority: minor Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

I've got some elements with fixed png's by filters. Using clone() function destroys fixing, as it can be seen in IE Developer Bar.

I wrote code that makes this, but I'm not JavaScript guru and think that developers can do this job better:

$.fn.cloneWithFilters = function(){

var clone = $(this).clone();

if ($.browser.msie && $.browser.version < 7) {

var this_els = $(this).find('*'), i = 0;


if (this.nodeName !== this_els[i].nodeName)


$(this).css('filter', $(this_els[i]).css('filter'));




return clone;


Attachments (0)
Change History (1)

Changed December 10, 2009 04:39AM UTC by john comment:1

resolution: → wontfix
status: newclosed

I don't think that this is something that we're going to land in jQuery core, it's really up to you to copy those properties and styling over.