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 + + +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ + + diff --git a/tests/mocha/password-rendering.html b/tests/mocha/password-rendering.html deleted file mode 100644 index e3baad6..0000000 --- a/tests/mocha/password-rendering.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - Mocha Tests - - - - - - - - - - - -
- -
- -
-
- -
-
- - -