Open ova2 opened 9 years ago
Are u sure this error originates from the Timeline? In the source code(https://github.com/almende/chap-links-library/blob/master/js/src/timeline/timeline.js) of the Timeline there is no mention at all of createStyleSheet
.
This can originate from using the excanvas.js script, for adding canvas support on IE8 and older. The Graph of chap-links-library uses canvas, hence you may have added the excanvas.js script for that?
Anyway, looking at the IE docs of createStyleSheet, they have dropped support for it in IE11 (it was an IE only thing anyway). Solutions:
createStyleSheet
with createElement('script')
).Load a polyfill for this before loading excanvas.js in the browser:
if (typeof document.createStyleSheet === 'undefined') {
document.createStyleSheet = function () {
return document.createElement('script');
}
}
Thanks. I think we use excanvas.js.
IE 11 throws: SCRIPT438: Object doesn't support property or method 'createStyleSheet'
when I want to show timeline. In "emulation mode" or older versions of IE it works.