Opened 9 years ago

Closed 9 years ago

#12438 closed defect (wontfix)

Dojo Chart2D does not work fine in IE if the node was deleted from DOM and added again.

Reported by: xiaobin Owned by: Eugene Lazutkin
Priority: high Milestone: tbd
Component: Charting Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

It behaves weird in IE6 (may be 7,8) when I delete the chart node and add the node to html body again.

seems the node can't be good displayed, if the node was delete from DOM and added to the DOM again.

Please see the testcase and error pic in the attachments. steps to reproduce the error

  1. click the delete button.
  2. click the add button.

Attachments (2)

dojoteset.html (3.4 KB) - added by xiaobin 9 years ago.
ie.png (17.3 KB) - added by xiaobin 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by xiaobin

Attachment: dojoteset.html added

Changed 9 years ago by xiaobin

Attachment: ie.png added

comment:1 Changed 9 years ago by bill

Component: GeneralCharting
Owner: changed from anonymous to Eugene Lazutkin

comment:2 Changed 9 years ago by bill

Description: modified (diff)

comment:3 Changed 9 years ago by bill

Description: modified (diff)

comment:4 Changed 9 years ago by Eugene Lazutkin

Resolution: wontfix
Status: newclosed

That's "normal" behavior for IE --- DOM nodes, both HTML and VML "lose" their attributes and styles, when their parent is removed from DOM, and reinserted.

The only way to fix it is to lobby Microsoft to issue a bugfix for old browsers.

My suggestion is simple: find other ways to hide/show charts or graphical elements without removing them from DOM. If the latter is impossible for some reasons, recreate objects anew rather than reinserting old nodes.

Note: See TracTickets for help on using tickets.