Skip to content

Commit a434267

Browse files
authored
Merge pull request #858 from MrRio/pr/815
Update fromHtml plugin to add compatibility with IE11
2 parents 35a9bbd + 3c73b6b commit a434267

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

dist/jspdf.debug.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
/** @preserve
1414
* jsPDF - PDF Document creation from JavaScript
15-
* Version 1.2.61 Built on 2016-09-26T11:22:48.682Z
16-
* CommitID bd60b2f4b9
15+
* Version 1.2.61 Built on 2016-09-28T10:02:07.788Z
16+
* CommitID 925dfe8d18
1717
*
1818
* Copyright (c) 2010-2014 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
1919
* 2010 Aaron Spike, https://github.com/acspike
@@ -2026,7 +2026,7 @@
20262026
* pdfdoc.mymethod() // <- !!!!!!
20272027
*/
20282028
jsPDF.API = { events: [] };
2029-
jsPDF.version = "1.2.61 2016-09-26T11:22:48.682Z:jameshall";
2029+
jsPDF.version = "1.2.61 2016-09-28T10:02:07.788Z:jameshall";
20302030

20312031
if (typeof define === 'function' && define.amd) {
20322032
define('jsPDF', function () {
@@ -7155,7 +7155,8 @@ Q\n";
71557155
}
71567156
}
71577157
// Only add the text if the text node is in the body element
7158-
if (cn.ownerDocument.body.contains(cn)) {
7158+
// Add compatibility with IE11
7159+
if (!!(cn.ownerDocument.body.compareDocumentPosition(cn) & 16)) {
71597160
renderer.addText(value, fragmentCSS);
71607161
}
71617162
} else if (typeof cn === "string") {

0 commit comments

Comments
 (0)