From fc01263f687e240cecd4f6f2f436deeb9ec62770 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Mon, 19 Jan 2015 22:30:10 +0200 Subject: [PATCH] Add comment regarding IE9 clone node --- dist/html2canvas.js | 1 + src/core.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/html2canvas.js b/dist/html2canvas.js index 380fe26..b615bbf 100644 --- a/dist/html2canvas.js +++ b/dist/html2canvas.js @@ -694,6 +694,7 @@ function isIE9() { return document.documentMode && document.documentMode <= 9; } +// https://github.com/niklasvh/html2canvas/issues/503 function cloneNodeIE9(node, javascriptEnabled) { var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false); diff --git a/src/core.js b/src/core.js index 32a5eda..c0f15b5 100644 --- a/src/core.js +++ b/src/core.js @@ -130,6 +130,7 @@ function isIE9() { return document.documentMode && document.documentMode <= 9; } +// https://github.com/niklasvh/html2canvas/issues/503 function cloneNodeIE9(node, javascriptEnabled) { var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false);