Bug Tracker

Modify

Ticket #8908 (closed bug: fixed)

Opened 3 years ago

Last modified 16 months ago

IE9: Clearing a cloned element's background-image causes the original element's bg img to be cleared.

Reported by: jeannielu@… Owned by:
Priority: high Milestone: 1.next
Component: manipulation Version: 1.5.2
Keywords: ie9 ie10 Cc:
Blocking: Blocked by:

Description

This used to work with 1.4.4 for IE9, and it's broken in 1.5.2:

var x = $('<div>'); x.css('background-image', 'url("/x.png")');

var y = x.clone(); y.css('background-image', ); bug: this clears x's background image

console.log(x.css('background-image'), y.css('background-image'));

Change History

comment:1 Changed 3 years ago by timmywil

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to manipulation

Confirmed in 1.6b1. Probably has to do with the clone.  http://jsfiddle.net/timmywil/yecuL/

comment:2 Changed 21 months ago by dmethvin

  • Keywords ie9 ie10 added

Right, we used .innerHTML but switched to .cloneNode(). Bug still present in IE10 preview.

comment:3 Changed 18 months ago by morgangraphics

  • Status changed from open to closed
  • Resolution set to duplicate

This bug is related to the issues here: http://bugs.jquery.com/ticket/9777. Refer to this bug for details.

comment:4 Changed 17 months ago by Elijah Manor

  • Resolution changed from duplicate to fixed

Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886.

Changeset: 5904468b9c49d7d5a780010f44d7e76dd4c81706

comment:5 Changed 17 months ago by Oleg

Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036.

Changeset: 643ecf9d63018a7ef907c1e058b778b68ddaf48f

comment:6 Changed 16 months ago by Oleg

Ref #8908. Update IE9 css clone fix. Close gh-1120.

Changeset: ce67f0ce640854ae6921bed154da772d26a1167e

comment:7 Changed 16 months ago by Oleg

Ref #8908. Update IE9 css clone fix. Close gh-1119.

Changeset: 054daa20afc0e2c84e66f450b155d0253a62aedb

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.