Skip to content

Commit 56a7556

Browse files
committed
fix text.textContent for ie8
1 parent 751b18e commit 56a7556

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jspdf.plugin.cell.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@
7373

7474
text.style.fontName = fontName;
7575
text.style.fontSize = fontSize + 'pt';
76-
text.textContent = txt;
76+
try {
77+
text.textContent = txt;
78+
} catch(e) {
79+
text.innerText = txt;
80+
}
7781

7882
document.body.appendChild(text);
7983

0 commit comments

Comments
 (0)