diff --git a/dist/html2canvas.js b/dist/html2canvas.js index 91a6bb0..b9fa0c6 100644 --- a/dist/html2canvas.js +++ b/dist/html2canvas.js @@ -581,6 +581,7 @@ window.html2canvas = function(nodeList, options) { options.javascriptEnabled = typeof(options.javascriptEnabled) === "undefined" ? false : options.javascriptEnabled; options.imageTimeout = typeof(options.imageTimeout) === "undefined" ? 10000 : options.imageTimeout; options.renderer = typeof(options.renderer) === "function" ? options.renderer : CanvasRenderer; + options.strict = !!options.strict; if (typeof(nodeList) === "string") { if (typeof(options.proxy) !== "string") { @@ -705,8 +706,12 @@ function createWindowClone(ownerDocument, containerDocument, width, height, opti return new Promise(function(resolve) { var documentClone = container.contentWindow.document; + + cloneNodeValues(ownerDocument.documentElement, documentElement, "textarea"); + cloneNodeValues(ownerDocument.documentElement, documentElement, "select"); + /* Chrome doesn't detect relative background-images assigned in inline + +
+ + +