niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.65k stars 4.82k forks source link

SVG not able to capture in IE11 with updated version 1.0.0-alpha.12 #1581

Open mockey-jockey opened 6 years ago

mockey-jockey commented 6 years ago

Specifications: html2canvas version tested with: 1.0.0-alpha.12 Browser & version: Internet Explorer 11 & Version: 11.112.17134.0 Operating system: Window 10 Bug reports: Problem html2canvas is not able to capture a SVG in IE11.

Steps to reproduce Please see jsFiddle: https://jsfiddle.net/coolbean/ekshfuLz/17/

install html2canvas and es6promise var Promise = require('es6-promise').Promise; import html2canvas from "html2canvas"; Calls html2canvas on a DOM with SVG tag html2canvas(SVGsource).then(function(canvas) { document.body.appendChild(canvas); });

@niklasvh - Most of the html2Canvas user waiting for to get resolve SVG with IE11 issue. When it will get triaged and resolved this issue .on behalf of all html2canvas user i request you to resolve this issue as soon as possible. This is one of the hectic part in html2canvas rest of the things are good.

I wish you to close this issue as soon as possible.

Guys : how to resolve this issue any workaround is there? please guide me:)

xianjin-xu commented 6 years ago

use the library of bluebird.js can load promise. maybe can help you!

marcagba commented 6 years ago

For informations purpose, I also spotted this bug on 1.0.0-alpha.11

EDIT: My bad, it was probably on 1.0.0-alpha.12 as well, I just noticed #1510