Add comment regarding IE9 clone node

This commit is contained in:
Niklas von Hertzen 2015-01-19 22:30:10 +02:00
parent 399ae9f33d
commit fc01263f68
2 changed files with 2 additions and 0 deletions

1
dist/html2canvas.js vendored
View File

@ -694,6 +694,7 @@ function isIE9() {
return document.documentMode && document.documentMode <= 9; return document.documentMode && document.documentMode <= 9;
} }
// https://github.com/niklasvh/html2canvas/issues/503
function cloneNodeIE9(node, javascriptEnabled) { function cloneNodeIE9(node, javascriptEnabled) {
var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false); var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false);

View File

@ -130,6 +130,7 @@ function isIE9() {
return document.documentMode && document.documentMode <= 9; return document.documentMode && document.documentMode <= 9;
} }
// https://github.com/niklasvh/html2canvas/issues/503
function cloneNodeIE9(node, javascriptEnabled) { function cloneNodeIE9(node, javascriptEnabled) {
var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false); var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false);