html2canvas Not working in IE 11

Created on 7 Jan 2018  路  2Comments  路  Source: niklasvh/html2canvas

Tested with latest release but still not working in IE 11.

Trying with sample code:

html2canvas(document.body).then(canvas => {
document.body.appendChild(canvas)
});

Tested on : Operating system: window10
jsfiddle link: Link

Most helpful comment

You can use an online JavaScript transpiler like BableJS (https://babeljs.io/), resulting into:

"use strict";

html2canvas(document.body).then(function (canvas) {
document.body.appendChild(canvas);
});

All 2 comments

IE 11 doesn't support arrow functions. Transpile your code to ES5 compliant.

You can use an online JavaScript transpiler like BableJS (https://babeljs.io/), resulting into:

"use strict";

html2canvas(document.body).then(function (canvas) {
document.body.appendChild(canvas);
});

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Loki180 picture Loki180  路  4Comments

celik75 picture celik75  路  4Comments

anthonymejia picture anthonymejia  路  4Comments

arzyu picture arzyu  路  3Comments

deepender87 picture deepender87  路  4Comments