Skip to content

OOB exception when exporting SVG #16143

@Rashaine-Johnson

Description

@Rashaine-Johnson

Expected behaviour

SVG exporting works without generating an error.

Actual behaviour

Highcharts generates error 28 which is caused by an out of bounds exception in getSVGForLocalExport (offline-exporting.ts)

Cause: The for loop in getSVGForLocalExport doesn't correctly handle node removal. No adjustments is being made to i nor l to correctly account for the deletion.

Live demo with steps to reproduce

https://jsfiddle.net/72q3y68x/

  • Load example and select download SVG option from export menu.
  • Open developer console to see generated error.

Product version

Highcharts

Affected browser(s)

Chrome

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions