Skip to content

Commit 055fd45

Browse files
committed
[plugin.from_html] Title tag is rendered
Fixes #416
1 parent 2204746 commit 055fd45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jspdf.plugin.from_html.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@
619619
$hiddendiv.innerHTML = "<iframe style=\"height:1px;width:1px\" name=\"" + framename + "\" />";
620620
document.body.appendChild($hiddendiv);
621621
$frame = window.frames[framename];
622-
$frame.document.body.innerHTML = element;
622+
$frame.document.open();
623+
$frame.document.writeln(element);
624+
$frame.document.close();
623625
return $frame.document.body;
624626
})(element.replace(/<\/?script[^>]*?>/gi, ''));
625627
}

0 commit comments

Comments
 (0)