diff --git a/jQuery.printElement/jquery.printElement.js b/jQuery.printElement/jquery.printElement.js index 96f8a3e..094d3c0 100644 --- a/jQuery.printElement/jquery.printElement.js +++ b/jQuery.printElement/jquery.printElement.js @@ -150,6 +150,19 @@ var elementHtml = _getElementHTMLIncludingFormElements(element); var html = new Array(); + + // Copy doctype if it's present + if (document.doctype) { + var node = document.doctype; + html.push( + "' + ); + } html.push('