Side navigation
#8908 closed bug (fixed)
Opened April 18, 2011 09:35PM UTC
Closed October 16, 2012 07:07PM UTC
Last modified January 08, 2013 02:10AM UTC
IE9: Clearing a cloned element's background-image causes the original element's bg img to be cleared.
| Reported by: | jeannielu@hotmail.com | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.5.2 |
| Keywords: | ie9 ie10 | Cc: | |
| Blocked by: | Blocking: |
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'));
Attachments (0)
Change History (7)
Changed April 18, 2011 09:40PM UTC by comment:1
| component: | unfiled → manipulation |
|---|---|
| priority: | undecided → high |
| status: | new → open |
Changed July 25, 2012 01:27AM UTC by comment:2
| keywords: | → ie9 ie10 |
|---|
Right, we used .innerHTML but switched to .cloneNode(). Bug still present in IE10 preview.
Changed October 16, 2012 07:07PM UTC by comment:3
| resolution: | → duplicate |
|---|---|
| status: | open → closed |
This bug is related to the issues here: http://bugs.jquery.com/ticket/9777. Refer to this bug for details.
Changed November 18, 2012 08:01PM UTC by comment:4
| resolution: | duplicate → fixed |
|---|
Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886.
Changeset: 5904468b9c49d7d5a780010f44d7e76dd4c81706
Changed December 13, 2012 03:45PM UTC by comment:5
Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036.
Changeset: 643ecf9d63018a7ef907c1e058b778b68ddaf48f
Confirmed in 1.6b1. Probably has to do with the clone. http://jsfiddle.net/timmywil/yecuL/