(function() { singlefile.util = {}; function getDoctype(doc) { var docType = doc.doctype, docTypeStr; if (docType) { docTypeStr = "\n"; } return ""; } singlefile.util.getDocContent = function(doc, docElement) { docElement = docElement || doc.documentElement; return getDoctype(doc) + docElement.outerHTML; }; })();