Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium Member
[6.7.0 classic] After upgrade 6.6.0 to 6.7.0 app crashes in Internet Explorer 8
Production built app crashes with error: "SVGElement is undefined" in IE8.
The problem is caused by a change in Ext.dom.Element's replaceCls method.
Towards the end of the function in 6.6.0.285 there is:
Code:
else if (added) {
me.dom.className = list.join(' ');
}
Which was changed in 6.7.0.166 to:
Code:
else if (added) {
list = list.join(' ');
if (dom instanceof SVGElement) {
// dom.className is an instance of SVGAnimatedString
// for SVG elements. Setting the `class` attribute
// of an SVG element will update its `dom.className.baseVal`.
dom.setAttribute('class', list);
}
else {
dom.className = list;
}
}
If you add a check for Internet Explorer 8 or lower the problem is solved:
Code:
else if (added) {
list = list.join(' ');
if (!Ext.isIE8m && dom instanceof SVGElement) {
// dom.className is an instance of SVGAnimatedString
// for SVG elements. Setting the `class` attribute
// of an SVG element will update its `dom.className.baseVal`.
dom.setAttribute('class', list);
}
else {
dom.className = list;
}
}
-
Sencha - Forum Administrator
Hello- thank you for bringing this to our attention. We appreciate you providing us this information and will look into it as soon as possible. Your patience is greatly appreciated!
Michele
-
Ext Support Team
Hello,
I apologize for the delay in response, this issue has been registered as a bug in our tracker under reference number EXTJS-28175. The Jira will be linked here to this thread for your reference and to track the progress.
Regards,
Kumar
Sencha Support.