Screenshot an iFrame content inside html2canvas "capture"

It looks like it may have once worked with a same origin iframe, but the developer seems to have removed the feature and is not interested in fixing it.

I think you're out of luck, at least with html2canvas. It may be theoretically possible to work though, as there are ways in which a parent can get at the child DOM. I'm not sure if other projects support it; there might also be separate projects which allow doing a DOM copy from a iframe into a parent. If you run that first, then you could use html2canvas for the screenshot. However I'd imagine there are tons of edge cases with this approach where things may not work as expected.

3 Likes